Data Structures | |
| class | option_base |
| class | option_imp< void > |
| class | option_imp< int > |
| class | option_imp< string > |
| class | option_imp< vector< string > > |
| class | option |
Functions | |
| static vector< poptOption > & | popt_options (void) |
| static vector< option_base * > & | options_list (void) |
| static poptContext | do_parse_options (int argc, char const **argv, vector< poptOption > &options, vector< string > &additional_params) |
| void | parse_options (int argc, char const **argv, vector< string > &additional_params) |
| void | parse_options (int argc, char const **argv, std::vector< std::string > &additional_params) |
Variables | |
| static int | showvers |
| static struct poptOption | appended_options [] |
| static poptContext popt::do_parse_options | ( | int | argc, | |
| char const ** | argv, | |||
| vector< poptOption > & | options, | |||
| vector< string > & | additional_params | |||
| ) | [static] |
Definition at line 81 of file popt_options.cpp.
References appended_options, op_poptGetContext(), options_list(), popt_options(), show_version(), and showvers.
Referenced by parse_options().


| static vector<option_base *>& popt::options_list | ( | void | ) | [static] |
Definition at line 64 of file popt_options.cpp.
Referenced by do_parse_options(), and popt::option_base::option_base().

| void popt::parse_options | ( | int | argc, | |
| char const ** | argv, | |||
| std::vector< std::string > & | additional_params | |||
| ) |
parse_options - parse command line options
| argc | like the parameter of main() | |
| argv | like the parameter of main() | |
| additional_params | additional options are stored here |
Parse the given command line with the previous options created. Multiple additional arguments that are not recognised will be added to the additional_params vector.
| void popt::parse_options | ( | int | argc, | |
| char const ** | argv, | |||
| vector< string > & | additional_params | |||
| ) |
Definition at line 109 of file popt_options.cpp.
References do_parse_options(), and options.
Referenced by main().


| static vector<poptOption>& popt::popt_options | ( | void | ) | [static] |
the popt array singleton options
Definition at line 58 of file popt_options.cpp.
Referenced by do_parse_options(), and popt::option_base::option_base().

struct poptOption popt::appended_options[] [static] |
{
{ "version", 'v', POPT_ARG_NONE, &showvers, 0, "show version", NULL, },
POPT_AUTOHELP
POPT_TABLEEND
}
Definition at line 72 of file popt_options.cpp.
Referenced by do_parse_options().
int popt::showvers [static] |
Definition at line 70 of file popt_options.cpp.
Referenced by do_parse_options().
1.6.1