#include <config.h>
Public Member Functions | |
Configuration () | |
virtual | ~Configuration () |
void | InitConfig (std::string filedst) |
void | Save () |
void | AddListener (ConfigListener *listener) |
void | RemoveListener (ConfigListener *listener) |
void | ClearListeners () |
void | setValue (const std::string &key, std::string value) |
void | setValue (const std::string &key, float value) |
std::string | GetValue (const std::string &key, std::string deflt) |
float | GetValue (const std::string &key, float deflt) |
Protected Attributes | |
std::map< std::string, std::string > | m_settings |
std::map< std::string, std::string >::iterator | m_settingiterator |
std::list< ConfigListener * > | m_listeners |
std::list< ConfigListener * >::iterator | m_iterl |
TiXmlDocument | m_config_file |
Configuration::Configuration | ( | ) | [inline] |
virtual Configuration::~Configuration | ( | ) | [inline, virtual] |
void Configuration::InitConfig | ( | std::string | filedst | ) |
void Configuration::Save | ( | ) | [inline] |
void Configuration::AddListener | ( | ConfigListener * | listener | ) |
void Configuration::RemoveListener | ( | ConfigListener * | listener | ) |
void Configuration::ClearListeners | ( | ) |
void Configuration::setValue | ( | const std::string & | key, | |
std::string | value | |||
) |
void Configuration::setValue | ( | const std::string & | key, | |
float | value | |||
) |
std::string Configuration::GetValue | ( | const std::string & | key, | |
std::string | deflt | |||
) |
float Configuration::GetValue | ( | const std::string & | key, | |
float | deflt | |||
) |
std::map<std::string, std::string> Configuration::m_settings [protected] |
std::map<std::string, std::string>::iterator Configuration::m_settingiterator [protected] |
std::list<ConfigListener*> Configuration::m_listeners [protected] |
std::list<ConfigListener*>::iterator Configuration::m_iterl [protected] |
TiXmlDocument Configuration::m_config_file [protected] |