status variables management class More...
#include <StatusManager.h>
Public Member Functions | |
| void | setValue (const char *name, const char *value) |
| sets status value More... | |
| const char * | getValue (const char *name) |
| gets status value More... | |
| bool | hasStatus (const char *name) |
| returns true if there is status variable specified name More... | |
| unsigned int | getNumberOfStatuses () |
| gets the number of status variables More... | |
| const char * | getStatusName (const unsigned int index) |
| gets status variable name More... | |
| const char * | getStatusValue (const unsigned int index) |
| gets status value More... | |
| void | setToIniFile (kome::core::IniFile &ini, const char *section) |
| sets status values to ini file information object More... | |
| void | getFromIniFile (kome::core::IniFile &ini, const char *section) |
| gets status values from ini file information object More... | |
Static Public Member Functions | |
| static StatusManager & | getInstance () |
| gets status manager object More... | |
Protected Member Functions | |
| StatusManager () | |
| constructor | |
| virtual | ~StatusManager () |
| destructor | |
Protected Attributes | |
| std::map< std::string, std::string > | m_statusMap |
| std::vector< std::string > | m_statuses |
status variables management class
Definition at line 24 of file StatusManager.h.
| void kome::objects::StatusManager::getFromIniFile | ( | kome::core::IniFile & | ini, |
| const char * | section | ||
| ) |
gets status values from ini file information object
| [in] | ini | ini file information object |
| [in] | section | section name |
Definition at line 116 of file StatusManager.cpp.

|
static |
gets status manager object
Definition at line 134 of file StatusManager.cpp.
| unsigned int kome::objects::StatusManager::getNumberOfStatuses | ( | ) |
gets the number of status variables
Definition at line 93 of file StatusManager.cpp.
| const char * kome::objects::StatusManager::getStatusName | ( | const unsigned int | index | ) |
gets status variable name
| [in] | index | status variable index |
Definition at line 98 of file StatusManager.cpp.
| const char * kome::objects::StatusManager::getStatusValue | ( | const unsigned int | index | ) |
gets status value
| [in] | index | status variable index |
Definition at line 124 of file StatusManager.cpp.
| const char * kome::objects::StatusManager::getValue | ( | const char * | name | ) |
gets status value
| [in] | name | status name |
Definition at line 76 of file StatusManager.cpp.
| bool kome::objects::StatusManager::hasStatus | ( | const char * | name | ) |
returns true if there is status variable specified name
| [in] | name | status name |
Definition at line 86 of file StatusManager.cpp.

| void kome::objects::StatusManager::setToIniFile | ( | kome::core::IniFile & | ini, |
| const char * | section | ||
| ) |
sets status values to ini file information object
| [out] | ini | ini file information object to be stored values |
| [in] | section | section name |
Definition at line 108 of file StatusManager.cpp.

| void kome::objects::StatusManager::setValue | ( | const char * | name, |
| const char * | value | ||
| ) |
sets status value
| [in] | name | status name |
| [in] | value | status value |
Definition at line 35 of file StatusManager.cpp.

|
protected |
the array of status name
Definition at line 43 of file StatusManager.h.
|
protected |
status values map
Definition at line 40 of file StatusManager.h.
1.8.6