Command-line argument parsing. More...
#include <cl_Arguments.hpp>
Public Member Functions | |
| Arguments (int &argc, char *argv[]) | |
| The constructor also handles the flags all BELFEM executables share, GNU style: -v [N], -vN, –verbose [N] and –verbose=N set the info level of the global logger; without a number, the level defaults to InfoLevel::Everything. | |
| virtual | ~Arguments ()=default |
| const Cell< string > & | data () const |
| returns a cell with arguments as strings | |
| const string & | data (const index_t aIndex) const |
| access argument by index | |
Protected Attributes | |
| Cell< string > | mArguments |
Command-line argument parsing.
| belfem::Arguments::Arguments | ( | int & | argc, |
| char * | argv[] ) |
The constructor also handles the flags all BELFEM executables share, GNU style: -v [N], -vN, –verbose [N] and –verbose=N set the info level of the global logger; without a number, the level defaults to InfoLevel::Everything.
Subclasses must not reuse -v or –verbose ( -V / –version is the conventional pair for a version flag ).
|
virtualdefault |
Reimplemented in belfem::gastables::Arguments.