#include <Args.h>
Public Member Functions | |
Args () | |
~Args () | |
void | declare (const char *option_cstr, bool *value, const bool defaultvalue=true) |
void | declare (const char *option_cstr, std::string *value, const char *defaultvalue=0) |
void | declare (const char *option_cstr, sint32 *value, const sint32 defaultvalue=0) |
void | declare (const char *option_cstr, uint32 *value, const uint32 defaultvalue=0) |
void | process (const sint32 argc, const char *const *const argv) |
Public Attributes | |
std::vector< Option > | options |
Classes | |
struct | Option |
Definition at line 31 of file Args.h.
void Args::declare | ( | const char * | option_cstr, | |
std::string * | value, | |||
const char * | defaultvalue = 0 | |||
) | [inline] |
void Args::declare | ( | const char * | option_cstr, | |
bool * | value, | |||
const bool | defaultvalue = true | |||
) | [inline] |
Definition at line 81 of file Args.h.
References options.
Referenced by CoreApp::DeclareArgs(), ConApp::DeclareArgs(), and main().
void Args::process | ( | const sint32 | argc, | |
const char *const *const | argv | |||
) |
Definition at line 30 of file Args.cpp.
References Args::Option::no_type, options, perr, Args::Option::type_bool, Args::Option::type_sint, Args::Option::type_str, and Args::Option::type_uint.
Referenced by main(), and CoreApp::ParseArgs().
std::vector<Option> Args::options |