Stores configs from the Config.xml file. More...
Public Types | |
| typedef boost::shared_ptr< Config > | SharedPtr |
Public Member Functions | |
| Config () | |
| Default contructor. | |
| virtual | ~Config () |
| Destructor. | |
| void | init (const std::string &a_appRootOverride) |
| init | |
| bool | hasValue (const std::string &a_index) |
| hasValue | |
| Data::VariantField & | getValue (const std::string &a_index) |
| getValue | |
| void | show (std::ostream &out) const |
| show | |
Stores configs from the Config.xml file.
| Tonido::Misc::Config::Config | ( | ) |
Default contructor.
Just create object with no data
| Data::VariantField & Tonido::Misc::Config::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::Config::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::Config::init | ( | const std::string & | a_appRootOverride | ) |
| void Tonido::Misc::Config::show | ( | std::ostream & | out | ) | const |
show
Shows the settings to the given output stream
| [in] | out | output stream to use |