#include <args.h>
Collaboration diagram for Args:
Public Member Functions | |
Args () | |
~Args () | |
void | declare (const char *s, bool *b, bool defval=true) |
void | declare (const char *s, std::string *b, const char *defval=0) |
void | declare (const char *s, int *b, int defval=0) |
void | declare (const char *s, uint32 *b, uint32 defval=0) |
void | process (int argc, char **argv) |
Private Attributes | |
std::vector< Opts > | options |
Classes | |
struct | Opts |
Definition at line 36 of file args.h.
void Args::declare | ( | const char * | s, | |
bool * | b, | |||
bool | defval = true | |||
) |
Definition at line 37 of file args.cc.
References Args::Opts::bval, Args::Opts::dbval, Args::Opts::option, options, ss, Args::Opts::type_bool, and Args::Opts::valuetype.
Referenced by main().
void Args::declare | ( | const char * | s, | |
std::string * | b, | |||
const char * | defval = 0 | |||
) |
void Args::declare | ( | const char * | s, | |
int * | b, | |||
int | defval = 0 | |||
) |
Definition at line 66 of file args.cc.
References Args::Opts::dival, Args::Opts::ival, Args::Opts::option, options, Args::Opts::type_int, and Args::Opts::valuetype.
Definition at line 81 of file args.cc.
References Args::Opts::duval, Args::Opts::option, options, Args::Opts::type_unsigned, Args::Opts::uval, and Args::Opts::valuetype.
void Args::process | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 96 of file args.cc.
References Args::Opts::no_type, options, Args::Opts::type_bool, Args::Opts::type_int, Args::Opts::type_string, and Args::Opts::type_unsigned.
Referenced by main().
std::vector<Opts> Args::options [private] |