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

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

List of all members.

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::VariantFieldgetValue (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)

Detailed Description

Stores configs from the ConfigEx.xml file.


Constructor & Destructor Documentation

Tonido::Misc::ConfigEx::ConfigEx ( )

Default contructor.

Just create object with no data


Member Function Documentation

VariantField & Tonido::Misc::ConfigEx::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::ConfigEx::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::ConfigEx::init ( const std::string &  a_appRoot,
int32_bt  a_udpPortOverride = -1,
int32_bt  a_httpPortOverride = -1 
)

init

inits the ConfigEx

Parameters:
[in]a_appRootwhere to load the configex file
Returns:
none
void Tonido::Misc::ConfigEx::setValue ( const std::string &  a_index,
const Data::VariantField a_field 
)

setValue

sets value associated with the name

Parameters:
[in]a_indexname of the value to get
Returns:
VariantField associated with this value
void Tonido::Misc::ConfigEx::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.