base::ConfigFile::ConfigTuple Class Reference

Defines a configuration item value and type (int/double/string). More...

List of all members.

Public Types

enum  eType { eType_INVALID, eType_INT, eType_DOUBLE, eType_STRING }

Public Member Functions

 ConfigTuple (void)
 ~ConfigTuple ()
void Clear (void)
bool Write (fstream &fs)
bool Read (fstream &fs, const string &type)

Public Attributes

ConfigTuple::eType mType
 type of the value
string mKey
 its name
int mValInt
 valid only if mType is int
double mValDouble
 valid only if mType is double
string mValString
 valid only if mType is string


Detailed Description

Defines a configuration item value and type (int/double/string).

Member Enumeration Documentation

enum base::ConfigFile::ConfigTuple::eType

Enumerator:
eType_INVALID 
eType_INT 
eType_DOUBLE 
eType_STRING 


Constructor & Destructor Documentation

base::ConfigFile::ConfigTuple::ConfigTuple ( void   ) 

Tuple constructor/destructor.

base::ConfigFile::ConfigTuple::~ConfigTuple (  ) 


Member Function Documentation

void base::ConfigFile::ConfigTuple::Clear ( void   ) 

bool base::ConfigFile::ConfigTuple::Write ( fstream &  fs  ) 

Write configuration tuple to file stream.

bool base::ConfigFile::ConfigTuple::Read ( fstream &  fs,
const string &  type 
)

Read configuration tuple from file stream.


Member Data Documentation

ConfigTuple::eType base::ConfigFile::ConfigTuple::mType

type of the value

string base::ConfigFile::ConfigTuple::mKey

its name

int base::ConfigFile::ConfigTuple::mValInt

valid only if mType is int

double base::ConfigFile::ConfigTuple::mValDouble

valid only if mType is double

string base::ConfigFile::ConfigTuple::mValString

valid only if mType is string


The documentation for this class was generated from the following files: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:18 2007