Args Class Reference

#include <args.h>

Collaboration diagram for Args:

Collaboration graph
[legend]
List of all members.

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

Classes

struct  Opts

Detailed Description

Definition at line 36 of file args.h.


Constructor & Destructor Documentation

Args::Args (  )  [inline]

Definition at line 56 of file args.h.

Args::~Args (  )  [inline]

Definition at line 57 of file args.h.


Member Function Documentation

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.

void Args::declare ( const char *  s,
uint32 b,
uint32  defval = 0 
)

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


Member Data Documentation

std::vector<Opts> Args::options [private]

Definition at line 54 of file args.h.

Referenced by declare(), and process().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:46:57 2007 for ExultEngine by  doxygen 1.5.1