QContainer Class Reference

List of all members.

Detailed Description

Container of QObject, int, double and string.

Note: QContainer takes the ownership of the QObject e.g. it will take care of destroying them when its destructor is called.


Public Member Functions

 QContainer ()
 default constructor
virtual ~QContainer ()
 destructor
void SetQObject (const std::string &key, QObject *obj)
 Add a QObject to QContainer.
void SetInt (const std::string &key, int obj)
 Add an int to QContainer.
void SetDouble (const std::string &key, double obj)
 Add a double to QContainer.
void SetString (const std::string &key, const std::string &obj)
 Add a string to QContainer.
QObjectGetQObject (const std::string &key)
 Get a QObject.
int GetInt (const std::string &key)
 Get an int.
double GetDouble (const std::string &key)
 Get a double.
std::string GetString (const std::string &key)
 Get a string.
void Clear ()

Private Attributes

std::map< std::string, QObject * > fQObjectMap
 QObject map with string key.
std::map< std::string, QObject
* >::iterator 
fQObjIter
std::map< std::string, double > fDoubleMap
 double map with string key
std::map< std::string, double
>::iterator 
fDIter
std::map< std::string, int > fIntMap
 int map with string key
std::map< std::string, int
>::iterator 
fIIter
std::map< std::string, std::string > fStringMap
 string map with string key
std::map< std::string, std::string
>::iterator 
fSIter


Member Function Documentation

void QContainer::SetQObject ( const std::string &  key,
QObject obj 
) [inline]

Add a QObject to QContainer.

Parameters:
key object identificator
obj previously "new" instantiated QObject
Returns:
none

void QContainer::SetInt ( const std::string &  key,
int  obj 
) [inline]

Add an int to QContainer.

Parameters:
key int identificator
obj int to be added
Returns:
none

void QContainer::SetDouble ( const std::string &  key,
double  obj 
) [inline]

Add a double to QContainer.

Parameters:
key double identificator
obj double to be added
Returns:
none

void QContainer::SetString ( const std::string &  key,
const std::string &  obj 
) [inline]

Add a string to QContainer.

Parameters:
key string identificator
obj string to be added
Returns:
none

QObject* QContainer::GetQObject ( const std::string &  key  )  [inline]

Get a QObject.

Parameters:
key QObject identificator
Returns:
reference to QObject

int QContainer::GetInt ( const std::string &  key  )  [inline]

Get an int.

Parameters:
key int identificator
Returns:
int value

double QContainer::GetDouble ( const std::string &  key  )  [inline]

Get a double.

Parameters:
key double identificator
Returns:
double value

std::string QContainer::GetString ( const std::string &  key  )  [inline]

Get a string.

Parameters:
key string identificator
Returns:
string value


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:42 2009 for CUORE Software by  doxygen 1.5.1