A radial quantity.
More...
#include <commandline_parser.hpp>
|
static arg_map | parse_commands (const size_t argc, const char *argv[]) |
| Factory method to parse the commandline and produce the arguments. More...
|
|
static void | help () |
| Display help.
|
|
◆ commandline_parser()
commandline_parser::commandline_parser |
( |
const size_t |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
|
inline |
Construct a commandline_parser object by pasring command line arguments.
- Parameters
-
[in] | argc | Number of commandline arguments. |
[in] | argv | Commandline strings. |
◆ get()
template<typename TYPE >
TYPE commandline_parser::get |
( |
const std::string & |
key | ) |
const |
|
inline |
Get the value of the agument.
- Parameters
-
[in] | key | Commandline key to check. |
- Returns
- Value of the argument.
◆ is_set()
bool commandline_parser::is_set |
( |
const std::string & |
key | ) |
const |
|
inline |
Check if command arg was set.
- Parameters
-
[in] | key | Commandline key to check. |
- Returns
- True if the key was set.
◆ parse_commands()
static arg_map commandline_parser::parse_commands |
( |
const size_t |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
|
inlinestatic |
Factory method to parse the commandline and produce the arguments.
- Parameters
-
[in] | argc | Number of commandline arguments. |
[in] | argv | Commandline strings. |
- Returns
- A constructed map of commandline argument key value pairs.
The documentation for this class was generated from the following files: