#include <popt_options.h>
Public Member Functions | |
template<class T > | |
option (T &, char const *option_name, char short_name, char const *help_str, char const *arg_help_str) | |
option (bool &, char const *option_name, char short_name, char const *help_str) | |
non templatized ctor for boolean option | |
~option () | |
template<> | |
option (int &value, char const *name, char short_name, char const *help, char const *arg_help) | |
specialization of option ctor for integer option | |
template<> | |
option (string &value, char const *name, char short_name, char const *help, char const *arg_help) | |
specialization of option ctor for string option | |
template<> | |
option (vector< string > &value, char const *name, char short_name, char const *help, char const *arg_help) | |
specialization of option ctor for vector<string> option | |
template<> | |
option (std::string &, char const *option_name, char short_name, char const *help_str, char const *arg_help_str) | |
template<> | |
option (std::vector< std::string > &, char const *option_name, char short_name, char const *help_str, char const *arg_help_str) | |
Private Attributes | |
option_base * | the_option |
option - base class for a command line option
Every command line option added before calling parse_options() is of this type.
Definition at line 79 of file popt_options.h.
popt::option::option | ( | T & | , | |
char const * | option_name, | |||
char | short_name, | |||
char const * | help_str, | |||
char const * | arg_help_str | |||
) | [inline] |
popt::option::option | ( | bool & | value, | |
char const * | option_name, | |||
char | short_name, | |||
char const * | help_str | |||
) |
non templatized ctor for boolean option
boolean operations don't get the same set of parameters as other option, as there is no argument to give help for. Due to a bug in gcc 2.95 we can't use a default parameter in the templatized ctor above because 2.95 is unable to match the right ctor. So on we add a non-templatized ctor with an exact match for boolean option.
Definition at line 213 of file popt_options.cpp.
popt::option::~option | ( | ) |
Definition at line 206 of file popt_options.cpp.
References the_option.
popt::option::option | ( | int & | value, | |
char const * | name, | |||
char | short_name, | |||
char const * | help, | |||
char const * | arg_help | |||
) | [inline] |
popt::option::option | ( | string & | value, | |
char const * | name, | |||
char | short_name, | |||
char const * | help, | |||
char const * | arg_help | |||
) | [inline] |
specialization of option ctor for string option
Definition at line 231 of file popt_options.cpp.
popt::option::option | ( | vector< string > & | value, | |
char const * | name, | |||
char | short_name, | |||
char const * | help, | |||
char const * | arg_help | |||
) | [inline] |
specialization of option ctor for vector<string> option
Definition at line 241 of file popt_options.cpp.
popt::option::option | ( | std::string & | , | |
char const * | option_name, | |||
char | short_name, | |||
char const * | help_str, | |||
char const * | arg_help_str | |||
) | [inline] |
popt::option::option | ( | std::vector< std::string > & | , | |
char const * | option_name, | |||
char | short_name, | |||
char const * | help_str, | |||
char const * | arg_help_str | |||
) | [inline] |
option_base* popt::option::the_option [private] |
Definition at line 104 of file popt_options.h.
Referenced by ~option().