Public Types | Public Member Functions
Tonido::Misc::Config Class Reference

Stores configs from the Config.xml file. More...

List of all members.

Public Types

typedef boost::shared_ptr< ConfigSharedPtr

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::VariantFieldgetValue (const std::string &a_index)
 getValue
void show (std::ostream &out) const
 show

Detailed Description

Stores configs from the Config.xml file.


Constructor & Destructor Documentation

Tonido::Misc::Config::Config ( )

Default contructor.

Just create object with no data


Member Function Documentation

Data::VariantField & Tonido::Misc::Config::getValue ( const std::string &  a_index)

getValue

returns the value associated with the name

Parameters:
[in]a_indexname of the value to get
Returns:
VariantField associated with this value
bool Tonido::Misc::Config::hasValue ( const std::string &  a_index)

hasValue

returns whether the specified value is present

Parameters:
[in]a_indexname of the value to get
Returns:
true if available, false otherwise
void Tonido::Misc::Config::init ( const std::string &  a_appRootOverride)

init

inits the Config

Parameters:
[in]a_appRootOverrideoverride for the approot if any
Returns:
none
void Tonido::Misc::Config::show ( std::ostream &  out) const

show

Shows the settings to the given output stream

Parameters:
[in]outoutput stream to use

Generated on Wed Oct 12 2011 21:46:53. © CodeLathe LLC 2007-2011. All Rights Reserved.