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. | |
| QObject * | GetQObject (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 |
| void QContainer::SetQObject | ( | const std::string & | key, | |
| QObject * | obj | |||
| ) | [inline] |
Add a QObject to QContainer.
| key | object identificator | |
| obj | previously "new" instantiated QObject |
| void QContainer::SetInt | ( | const std::string & | key, | |
| int | obj | |||
| ) | [inline] |
| void QContainer::SetDouble | ( | const std::string & | key, | |
| double | obj | |||
| ) | [inline] |
Add a double to QContainer.
| key | double identificator | |
| obj | double to be added |
| void QContainer::SetString | ( | const std::string & | key, | |
| const std::string & | obj | |||
| ) | [inline] |
Add a string to QContainer.
| key | string identificator | |
| obj | string to be added |
| QObject* QContainer::GetQObject | ( | const std::string & | key | ) | [inline] |
| int QContainer::GetInt | ( | const std::string & | key | ) | [inline] |
Get an int.
| key | int identificator |
| double QContainer::GetDouble | ( | const std::string & | key | ) | [inline] |
Get a double.
| key | double identificator |
| std::string QContainer::GetString | ( | const std::string & | key | ) | [inline] |
Get a string.
| key | string identificator |
1.5.1