Args Class Reference

#include <Args.h>

List of all members.

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< Optionoptions

Classes

struct  Option


Detailed Description

Definition at line 31 of file Args.h.


Constructor & Destructor Documentation

Args::Args (  )  [inline]

Definition at line 34 of file Args.h.

Args::~Args (  )  [inline]

Definition at line 35 of file Args.h.


Member Function Documentation

void Args::declare ( const char *  option_cstr,
uint32 value,
const uint32  defaultvalue = 0 
) [inline]

Definition at line 90 of file Args.h.

References options.

void Args::declare ( const char *  option_cstr,
sint32 value,
const sint32  defaultvalue = 0 
) [inline]

Definition at line 87 of file Args.h.

References options.

void Args::declare ( const char *  option_cstr,
std::string *  value,
const char *  defaultvalue = 0 
) [inline]

Definition at line 84 of file Args.h.

References options.

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().


Member Data Documentation

std::vector<Option> Args::options

Definition at line 78 of file Args.h.

Referenced by declare(), and process().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:28:40 2007 for pentagram by  doxygen 1.4.7