base::ConfBin::ConfTuple 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

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

Public Attributes

ConfTuple::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

Enumerator:
eType_INVALID 
eType_INT 
eType_DOUBLE 
eType_STRING 


Constructor & Destructor Documentation

base::ConfBin::ConfTuple::ConfTuple ( void   ) 

Tuple constructor/destructor.

base::ConfBin::ConfTuple::~ConfTuple (  ) 


Member Function Documentation

void base::ConfBin::ConfTuple::Clear ( void   ) 

bool base::ConfBin::ConfTuple::Write ( fstream &  fs  ) 

Write configuration tuple to file stream.

bool base::ConfBin::ConfTuple::Read ( fstream &  fs,
const string &  type 
)

Read configuration tuple from file stream.


Member Data Documentation

type of the value

its name

valid only if mType is int

valid only if mType is double

valid only if mType is string


The documentation for this class was generated from the following files:
Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010