Stores configs from the ConfigEx.xml file. More...
Public Types | |
|
typedef boost::shared_ptr < ConfigEx > | SharedPtr |
Public Member Functions | |
| ConfigEx () | |
| Default contructor. | |
| virtual | ~ConfigEx () |
| Destructor. | |
| void | init (const std::string &a_appRoot, int32_bt a_udpPortOverride=-1, int32_bt a_httpPortOverride=-1) |
| init | |
| bool | hasValue (const std::string &a_index) |
| hasValue | |
| Data::VariantField & | getValue (const std::string &a_index) |
| getValue | |
| void | setValue (const std::string &a_index, const Data::VariantField &a_field) |
| setValue | |
| bool | save () |
| void | show (std::ostream &out) const |
| show | |
| void | loadFromConfig (int32_bt &a_udpPort, int32_bt &a_httpPort) |
| Special functions to change file settings without affecting current settings. | |
| void | saveToConfig (int32_bt a_udpPort, int32_bt a_httpPort) |
Stores configs from the ConfigEx.xml file.
| Tonido::Misc::ConfigEx::ConfigEx | ( | ) |
Default contructor.
Just create object with no data
| VariantField & Tonido::Misc::ConfigEx::getValue | ( | const std::string & | a_index | ) |
getValue
returns the value associated with the name
| [in] | a_index | name of the value to get |
| bool Tonido::Misc::ConfigEx::hasValue | ( | const std::string & | a_index | ) |
hasValue
returns whether the specified value is present
| [in] | a_index | name of the value to get |
| void Tonido::Misc::ConfigEx::init | ( | const std::string & | a_appRoot, |
| int32_bt | a_udpPortOverride = -1, |
||
| int32_bt | a_httpPortOverride = -1 |
||
| ) |
| void Tonido::Misc::ConfigEx::setValue | ( | const std::string & | a_index, |
| const Data::VariantField & | a_field | ||
| ) |
setValue
sets value associated with the name
| [in] | a_index | name of the value to get |
| void Tonido::Misc::ConfigEx::show | ( | std::ostream & | out | ) | const |
show
Shows the settings to the given output stream
| [in] | out | output stream to use |