#include <Configuration.h>
Inheritance diagram for ACE_Configuration_Heap:
Public Methods | |
ACE_Configuration_Heap (void) | |
Default ctor. More... | |
virtual | ~ACE_Configuration_Heap (void) |
Destructor. More... | |
int | open (const ACE_TCHAR *file_name, void *base_address=ACE_DEFAULT_BASE_ADDR, int default_map_size=ACE_DEFAULT_CONFIG_SECTION_SIZE) |
Opens a configuration based on a file name. More... | |
int | open (int default_map_size=ACE_DEFAULT_CONFIG_SECTION_SIZE) |
Opens a heap based configuration. More... | |
virtual int | open_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, int create, ACE_Configuration_Section_Key &result) |
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) |
virtual int | enumerate_values (const ACE_Configuration_Section_Key &key, int Index, ACE_TString &name, VALUETYPE &type) |
Enumerates through the values in a section. More... | |
virtual int | enumerate_sections (const ACE_Configuration_Section_Key &key, int Index, ACE_TString &name) |
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) |
virtual int | set_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int value) |
virtual int | set_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const void *data, u_int length) |
virtual int | get_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, ACE_TString &value) |
virtual int | get_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int &value) |
virtual int | get_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, void *&data, u_int &length) |
virtual int | find_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, VALUETYPE &type) |
Retrieves the type of a named configuration value. More... | |
virtual int | remove_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name) |
Removes the the value <name> from <key>. returns non zero on error. More... | |
Private Methods | |
int | open_simple_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, int create, ACE_Configuration_Section_Key &result) |
<sub_section> may not contain path separators. More... | |
int | add_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, ACE_Configuration_Section_Key &result) |
Adds a new section. More... | |
int | create_index (void) |
Helper for the <open> method. More... | |
int | create_index_helper (void *buffer) |
Helper for <create_index> method: places hash table into an allocated space. More... | |
int | value_open_helper (size_t hash_table_size, void *buffer) |
int | section_open_helper (size_t hash_table_size, void *buffer) |
int | load_key (const ACE_Configuration_Section_Key &key, ACE_TString &name) |
int | new_section (const ACE_TString §ion, ACE_Configuration_Section_Key &result) |
ACE_Configuration_Heap (const ACE_Configuration_Heap &rhs) | |
ACE_Configuration_Heap & | operator= (const ACE_Configuration_Heap &rhs) |
Private Attributes | |
ACE_Allocator * | allocator_ |
SECTION_MAP * | index_ |
int | default_map_size_ |
This class uses ACE's Allocators to manage a memory representation of a configuraiton database. A persistent heap may be used to store configurations persistently
Note: Before using this class you must call one of the open methods.
|
Default ctor.
|
|
Destructor.
|
|
|
|
Adds a new section.
|
|
Helper for the <open> method.
|
|
Helper for <create_index> method: places hash table into an allocated space.
|
|
Enumerates through the subsections in a section.
Reimplemented from ACE_Configuration. |
|
Enumerates through the values in a section.
Reimplemented from ACE_Configuration. |
|
Retrieves the type of a named configuration value.
Reimplemented from ACE_Configuration. |
|
Reimplemented from ACE_Configuration. |
|
Reimplemented from ACE_Configuration. |
|
Reimplemented from ACE_Configuration. |
|
|
|
|
|
Opens a heap based configuration.
|
|
Opens a configuration based on a file name.
|
|
Opens a named section in an existing section.
Reimplemented from ACE_Configuration. |
|
<sub_section> may not contain path separators.
|
|
|
|
Reimplemented from ACE_Configuration. |
|
Removes the the value <name> from <key>. returns non zero on error.
Reimplemented from ACE_Configuration. |
|
|
|
Reimplemented from ACE_Configuration. |
|
Reimplemented from ACE_Configuration. |
|
Reimplemented from ACE_Configuration. |
|
|
|
|
|
|
|
|