#include <option.h>
|
| | option_parser (int argc, char **argv) |
| | Parse the options from the commandline arguments (argc,argv)
|
| |
| std::vector< std::string > | validate (const std::set< std::string > &keywords) const |
| | check keys in the options are in the set keywords.
|
| |
| template<typename RET > |
| RET | get (const std::string &key) const |
| | retrieve an option
|
| |
| template<typename RET > |
| RET | get (const std::string &key, const RET &default_value) const |
| | retrieve an option
|
| |
|
| std::map< std::string, std::string > | _map |
| |
◆ option_parser()
Parse the options from the commandline arguments (argc,argv)
◆ get() [1/2]
| RET get |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ get() [2/2]
| RET get |
( |
const std::string & |
key, |
|
|
const RET & |
default_value |
|
) |
| const |
|
inline |
◆ validate()
| std::vector< std::string > validate |
( |
const std::set< std::string > & |
keywords | ) |
const |
|
inline |
check keys in the options are in the set keywords.
- Returns
- vector of erroneous keywords in options.
◆ _map
| std::map<std::string, std::string> _map |
|
private |
The documentation for this struct was generated from the following file: