Public Types |
enum | VALUETYPE { STRING,
INTEGER,
BINARY,
INVALID
} |
| Enumeration for the various types of values we can store. More...
|
Public Methods |
virtual | ~ACE_Configuration (void) |
| Destructor. More...
|
virtual const ACE_Configuration_Section_Key & | root_section (void) const |
| Obtain a reference to the root section of this configuration. More...
|
virtual int | open_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, int create, ACE_Configuration_Section_Key &result)=0 |
| Opens a named section in an existing section. More...
|
virtual int | remove_section (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *sub_section, int recursive)=0 |
virtual int | enumerate_values (const ACE_Configuration_Section_Key &key, int index, ACE_TString &name, VALUETYPE &type)=0 |
| Enumerates through the values in a section. More...
|
virtual int | enumerate_sections (const ACE_Configuration_Section_Key &key, int index, ACE_TString &name)=0 |
| Enumerates through the subsections in a section. More...
|
virtual int | set_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const ACE_TString &value)=0 |
virtual int | set_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int value)=0 |
virtual int | set_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const void *data, u_int length)=0 |
virtual int | get_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, ACE_TString &value)=0 |
virtual int | get_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int &value)=0 |
virtual int | get_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, void *&data, u_int &length)=0 |
virtual int | find_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, VALUETYPE &type)=0 |
| Retrieves the type of a named configuration value. More...
|
virtual int | remove_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name)=0 |
int | expand_path (const ACE_Configuration_Section_Key &key, const ACE_TString &path_in, ACE_Configuration_Section_Key &key_out, int create=1) |
| Expands <path_in> to <key_out> from <key>. More...
|
int | export_config (const ACE_TCHAR *filename) |
int | import_config (const ACE_TCHAR *filename) |
int | operator== (const ACE_Configuration &rhs) const |
| Determine if the contents of this object is the same as the contents of the object on the right hand side. More...
|
int | operator!= (const ACE_Configuration &rhs) const |
| Determine if the contents of this object are different from the contents of the object on the right hand side. More...
|
Protected Methods |
| ACE_Configuration (void) |
| Default ctor. More...
|
ACE_Section_Key_Internal * | get_internal_key (const ACE_Configuration_Section_Key &key) |
| Resolves the internal key from a section key. More...
|
int | validate_name (const ACE_TCHAR *name, int allow_path=0) |
| Tests to see if <name> is valid. More...
|
| ACE_Configuration (const ACE_Configuration &rhs) |
ACE_Configuration & | operator= (const ACE_Configuration &rhs) |
Protected Attributes |
ACE_Configuration_Section_Key | root_ |