Args::Option Struct Reference

#include <Args.h>

List of all members.

Public Types

 no_type = 0
 type_bool
 type_str
 type_sint
 type_uint
enum  {
  no_type = 0, type_bool, type_str, type_sint,
  type_uint
}

Public Member Functions

 Option ()
 Option (const char *option_cstr, bool *value, const bool defaultvalue=true)
 Option (const char *option_cstr, std::string *value, const char *defaultvalue=0)
 Option (const char *option_cstr, sint32 *value, const sint32 defaultvalue=true)
 Option (const char *option_cstr, uint32 *value, const uint32 defaultvalue=true)
 ~Option ()

Public Attributes

std::string option
bool * _bool_val
std::string * _str_val
sint32_sint_val
uint32_uint_val
bool _bool_default
std::string _str_default
sint32 _sint_default
uint32 _uint_default
enum Args::Option:: { ... }  valuetype


Detailed Description

Definition at line 37 of file Args.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
no_type 
type_bool 
type_str 
type_sint 
type_uint 

Definition at line 75 of file Args.h.


Constructor & Destructor Documentation

Args::Option::Option (  )  [inline]

Definition at line 39 of file Args.h.

Args::Option::Option ( const char *  option_cstr,
bool *  value,
const bool  defaultvalue = true 
) [inline]

Definition at line 41 of file Args.h.

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

Definition at line 46 of file Args.h.

References _str_default, and _str_val.

Args::Option::Option ( const char *  option_cstr,
sint32 value,
const sint32  defaultvalue = true 
) [inline]

Definition at line 51 of file Args.h.

References _sint_default, and _sint_val.

Args::Option::Option ( const char *  option_cstr,
uint32 value,
const uint32  defaultvalue = true 
) [inline]

Definition at line 56 of file Args.h.

References _uint_default, and _uint_val.

Args::Option::~Option (  )  [inline]

Definition at line 61 of file Args.h.


Member Data Documentation

bool Args::Option::_bool_default

Definition at line 70 of file Args.h.

bool* Args::Option::_bool_val

Definition at line 65 of file Args.h.

sint32 Args::Option::_sint_default

Definition at line 72 of file Args.h.

Referenced by Option().

sint32* Args::Option::_sint_val

Definition at line 67 of file Args.h.

Referenced by Option().

std::string Args::Option::_str_default

Definition at line 71 of file Args.h.

Referenced by Option().

std::string* Args::Option::_str_val

Definition at line 66 of file Args.h.

Referenced by Option().

uint32 Args::Option::_uint_default

Definition at line 73 of file Args.h.

Referenced by Option().

uint32* Args::Option::_uint_val

Definition at line 68 of file Args.h.

Referenced by Option().

std::string Args::Option::option

Definition at line 61 of file Args.h.

enum { ... } Args::Option::valuetype


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