OpenLB 1.7
|
Very simple CLI argument parser. More...
#include <cliReader.h>
Public Member Functions | |
CLIreader (int &argc, char **argv) | |
bool | contains (const std::string &name) const |
Returns true iff name is specified. | |
std::string | operator[] (const std::string &name) const |
Returns value of token after name (i.e. by convention the value assigned to name) | |
template<typename TYPE > | |
TYPE | getValueOrFallback (const std::string &name, TYPE fallback) const |
Return value of name as TYPE or fallback if not provided. | |
Very simple CLI argument parser.
Definition at line 34 of file cliReader.h.
|
inline |
Definition at line 39 of file cliReader.h.
|
inline |
Returns true iff name is specified.
Definition at line 46 of file cliReader.h.
|
inline |
Return value of name as TYPE or fallback if not provided.
Definition at line 62 of file cliReader.h.
References contains(), and operator[]().
|
inline |
Returns value of token after name (i.e. by convention the value assigned to name)
Definition at line 51 of file cliReader.h.