#include <Config.h>
Public Types | |
typedef MapContainerIterator< OptionMap > | OptionIterator |
typedef ConstMapContainerIterator< OptionMap > | ConstOptionIterator |
Public Member Functions | |
Config () | |
Create a new blank instance. | |
Config (const Config &rhs) | |
Share the option information from the given config. | |
void | copy (const Config &rhs) |
Force a copy of data from the given Config. | |
Option | operator[] (const String &name) const |
Operator access to the named options within. | |
Config & | operator= (const Config &rhs) |
Assigns shared access of data from the given Config. | |
Config & | option (const String &name, const Option &value) |
Inserts a new named Option. | |
Option | getOption (const String &name) |
Returns an Options with the given name. | |
void | removeOption (const String &name) |
Removes an option from this Config. | |
bool | containsOption (const String &name) const |
Returns true of the named Option exists. | |
size_t | getOptionCount () const |
Returns the number of options within this config. | |
OptionIterator | getOptionIterator () |
Returns an iterator over the options within this config. | |
ConstOptionIterator | getOptionIterator () const |
Returns an iterator over the options within this config. | |
template<class Archive> | |
void | serialize (Archive &ar, const unsigned int version) |
This is an archiver function for options. | |
Protected Types | |
typedef std::map< String, Option > | OptionMap |
typedef boost::shared_ptr< ConfigData > | ConfigDataPtr |
Protected Attributes | |
ConfigDataPtr | _ptr |
Classes | |
struct | ConfigData |
|
|
|
|
|
|
|
|
|
Create a new blank instance.
|
|
Share the option information from the given config.
|
|
Returns true of the named Option exists.
|
|
Force a copy of data from the given Config.
|
|
Returns an Options with the given name.
|
|
Returns the number of options within this config.
|
|
Returns an iterator over the options within this config.
|
|
Returns an iterator over the options within this config.
|
|
Assigns shared access of data from the given Config.
|
|
Operator access to the named options within.
|
|
Inserts a new named Option.
|
|
Removes an option from this Config.
|
|
This is an archiver function for options.
|
|
|