15 using namespace kome::objects;
20 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
21 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
37 std::string n =
NVL( name,
"" );
38 std::string v =
NVL( value,
"" );
54 for(
int i = 0; i < (int)
m_statuses.size() && idx < 0; i++ ) {
64 LOG_DEBUG( FMT(
"Removing status value [%s=%s]", n.c_str(), oldValue.c_str() ) );
69 if( v.compare( oldValue ) != 0 ) {
70 LOG_DEBUG( FMT(
"Setting status value [%s=%s]", n.c_str(), v.c_str() ) );
89 return ( val !=
NULL );
110 for(
unsigned int i = 0; i <
m_statuses.size(); i++ ) {
interfaces of StatusManager class
std::vector< std::string > m_statuses
static StatusManager & getInstance()
gets status manager object
const char * getParameterName(const char *section, const unsigned int index)
gets parameter name
unsigned int getNumberOfStatuses()
gets the number of status variables
const char * getParameterValue(const char *section, const unsigned int index)
gets parameter value
#define NVL(checkVal, replaceVal)
const char * getStatusName(const unsigned int index)
gets status variable name
unsigned int getNumberOfParameters(const char *section)
gets the number of parameters specified section
const char * getValue(const char *name)
gets status value
bool hasStatus(const char *name)
returns true if there is status variable specified name
void setToIniFile(kome::core::IniFile &ini, const char *section)
sets status values to ini file information object
const char * getStatusValue(const unsigned int index)
gets status value
void setValue(const char *name, const char *value)
sets status value
ini file management class
status variables management class
StatusManager()
constructor
void setString(const char *section, const char *key, const char *value)
sets string value
void getFromIniFile(kome::core::IniFile &ini, const char *section)
gets status values from ini file information object
virtual ~StatusManager()
destructor
std::map< std::string, std::string > m_statusMap