#include <Configuration.h>
Inheritance diagram for ACE_Configuration_Heap:
Public Methods | |
ACE_Configuration_Heap (void) | |
Default ctor. | |
virtual | ~ACE_Configuration_Heap (void) |
Destructor. | |
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. | |
int | open (int default_map_size=ACE_DEFAULT_CONFIG_SECTION_SIZE) |
Opens a heap based configuration. | |
virtual int | open_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, int create, ACE_Configuration_Section_Key &result) |
virtual int | remove_section (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *sub_section, int recursive) |
Removes a named section. | |
virtual int | enumerate_values (const ACE_Configuration_Section_Key &key, int index, ACE_TString &name, VALUETYPE &type) |
virtual int | enumerate_sections (const ACE_Configuration_Section_Key &key, int index, ACE_TString &name) |
virtual int | set_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const ACE_TString &value) |
Sets a string-typed value. | |
virtual int | set_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int value) |
Sets a integer-typed value. | |
virtual int | set_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, const void *data, size_t length) |
Sets a binary-typed value. | |
virtual int | get_string_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, ACE_TString &value) |
Gets a string-typed value. | |
virtual int | get_integer_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, u_int &value) |
Gets an integer-typed value. | |
virtual int | get_binary_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, void *&data, size_t &length) |
Gets a binary-typed value. | |
virtual int | find_value (const ACE_Configuration_Section_Key &key, const ACE_TCHAR *name, VALUETYPE &type) |
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. | |
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 | |
int | add_section (const ACE_Configuration_Section_Key &base, const ACE_TCHAR *sub_section, ACE_Configuration_Section_Key &result) |
Adds a new section. | |
int | create_index (void) |
Helper for the <open> method. | |
int | create_index_helper (void *buffer) |
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.
Implements ACE_Configuration. |
|
Enumerates through the values in a section.
Implements ACE_Configuration. |
|
Retrieves the type of a named configuration value.
Implements ACE_Configuration. |
|
Gets a binary-typed value.
Implements ACE_Configuration. |
|
Gets an integer-typed value.
Implements ACE_Configuration. |
|
Gets a string-typed value.
Implements ACE_Configuration. |
|
|
|
|
|
Opens a heap based configuration.
|
|
Opens a configuration based on a file name.
|
|
Opens a named section in an existing section.
Implements ACE_Configuration. |
|
<sub_section> may not contain path separators
|
|
|
|
Removes a named section.
Implements ACE_Configuration. |
|
Removes the the value <name> from <key>. returns non zero on error.
Implements ACE_Configuration. |
|
|
|
Sets a binary-typed value.
Implements ACE_Configuration. |
|
Sets a integer-typed value.
Implements ACE_Configuration. |
|
Sets a string-typed value.
Implements ACE_Configuration. |
|
|
|
|
|
|
|
|