|
Electroneum
|
Classes | |
| struct | arg_descriptor |
| struct | arg_descriptor< std::vector< T >, false > |
| struct | arg_descriptor< T, false > |
| struct | arg_descriptor< T, false, true > |
| struct | arg_descriptor< T, false, true, NUM_DEPS > |
| struct | arg_descriptor< T, true > |
Functions | |
| bool | is_yes (const std::string &str) |
| bool | is_no (const std::string &str) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, true > &) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, false > &arg) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, false, true > &arg) |
| template<typename T , int NUM_DEPS> | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, false, true, NUM_DEPS > &arg) |
| template<typename T > | |
| boost::program_options::typed_value< T, char > * | make_semantic (const arg_descriptor< T, false > &arg, const T &def) |
| template<typename T > | |
| boost::program_options::typed_value< std::vector< T >, char > * | make_semantic (const arg_descriptor< std::vector< T >, false > &) |
| template<typename T , bool required, bool dependent, int NUM_DEPS> | |
| void | add_arg (boost::program_options::options_description &description, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg, bool unique=true) |
| template<typename T > | |
| void | add_arg (boost::program_options::options_description &description, const arg_descriptor< T, false > &arg, const T &def, bool unique=true) |
| template<> | |
| void | add_arg (boost::program_options::options_description &description, const arg_descriptor< bool, false > &arg, bool unique) |
| template<typename charT > | |
| boost::program_options::basic_parsed_options< charT > | parse_command_line (int argc, const charT *const argv[], const boost::program_options::options_description &desc, bool allow_unregistered=false) |
| template<typename F > | |
| bool | handle_error_helper (const boost::program_options::options_description &desc, F parser) |
| template<typename T , bool required, bool dependent, int NUM_DEPS> | |
| std::enable_if<!std::is_same< T, bool >::value, bool >::type | has_arg (const boost::program_options::variables_map &vm, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg) |
| template<typename T , bool required, bool dependent, int NUM_DEPS> | |
| bool | is_arg_defaulted (const boost::program_options::variables_map &vm, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg) |
| template<typename T > | |
| T | get_arg (const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg) |
| template<typename T , int NUM_DEPS> | |
| T | get_arg (const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true, NUM_DEPS > &arg) |
| template<typename T , bool required> | |
| T | get_arg (const boost::program_options::variables_map &vm, const arg_descriptor< T, required > &arg) |
| template<bool dependent, int NUM_DEPS> | |
| bool | has_arg (const boost::program_options::variables_map &vm, const arg_descriptor< bool, false, dependent, NUM_DEPS > &arg) |
Variables | |
| const arg_descriptor< bool > | arg_help = {"help", "Produce help message"} |
| const arg_descriptor< bool > | arg_version = {"version", "Output version information"} |
| void command_line::add_arg | ( | boost::program_options::options_description & | description, |
| const arg_descriptor< T, required, dependent, NUM_DEPS > & | arg, | ||
| bool | unique = true |
||
| ) |
Definition at line 188 of file command_line.h.


| void command_line::add_arg | ( | boost::program_options::options_description & | description, |
| const arg_descriptor< T, false > & | arg, | ||
| const T & | def, | ||
| bool | unique = true |
||
| ) |
Definition at line 200 of file command_line.h.

|
inline |
Definition at line 212 of file command_line.h.
| T command_line::get_arg | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, false, true > & | arg | ||
| ) |
Definition at line 271 of file command_line.h.


| T command_line::get_arg | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, false, true, NUM_DEPS > & | arg | ||
| ) |
Definition at line 277 of file command_line.h.

| T command_line::get_arg | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, required > & | arg | ||
| ) |
Definition at line 286 of file command_line.h.
| bool command_line::handle_error_helper | ( | const boost::program_options::options_description & | desc, |
| F | parser | ||
| ) |
| std::enable_if<!std::is_same<T, bool>::value, bool>::type command_line::has_arg | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, required, dependent, NUM_DEPS > & | arg | ||
| ) |
|
inline |
Definition at line 292 of file command_line.h.

| bool command_line::is_arg_defaulted | ( | const boost::program_options::variables_map & | vm, |
| const arg_descriptor< T, required, dependent, NUM_DEPS > & | arg | ||
| ) |
| bool command_line::is_no | ( | const std::string & | str | ) |
str is is_iequal("n" || "no" ||tr("no"))`. Definition at line 62 of file command_line.cpp.

| bool command_line::is_yes | ( | const std::string & | str | ) |
str is is_iequal("y" || "yes" ||tr("yes"))`. Definition at line 48 of file command_line.cpp.

| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, true > & | ) |
| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, false > & | arg | ) |
Definition at line 126 of file command_line.h.
| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, false, true > & | arg | ) |
Definition at line 135 of file command_line.h.
| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, false, true, NUM_DEPS > & | arg | ) |
Definition at line 149 of file command_line.h.
| boost::program_options::typed_value<T, char>* command_line::make_semantic | ( | const arg_descriptor< T, false > & | arg, |
| const T & | def | ||
| ) |
Definition at line 171 of file command_line.h.
| boost::program_options::typed_value<std::vector<T>, char>* command_line::make_semantic | ( | const arg_descriptor< std::vector< T >, false > & | ) |
Definition at line 180 of file command_line.h.
| boost::program_options::basic_parsed_options<charT> command_line::parse_command_line | ( | int | argc, |
| const charT *const | argv[], | ||
| const boost::program_options::options_description & | desc, | ||
| bool | allow_unregistered = false |
||
| ) |
| const arg_descriptor< bool > command_line::arg_help = {"help", "Produce help message"} |
Definition at line 76 of file command_line.cpp.
| const arg_descriptor< bool > command_line::arg_version = {"version", "Output version information"} |
Definition at line 77 of file command_line.cpp.