Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Configuration.h File Reference

#include "ace/pre.h"
#include "ace/SString.h"
#include "ace/Hash_Map_With_Allocator_T.h"
#include "ace/Malloc.h"
#include "ace/post.h"

Include dependency graph for Configuration.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  ACE_Configuration_Heap
 The concrete implementation of a allocator based configuration database. More...

class  ACE_Configuration_Section_IntId
 The internal ID for a section hash table. More...

class  ACE_Configuration_Section_Key_Heap
 Internal section key class for heap based configuration database. More...

class  ACE_Configuration
class  ACE_Configuration_ExtId
 External ID for the section and value hash. More...

class  ACE_Configuration_Section_Key
 Reference counted wrapper for ACE_Section_Key_Internal. More...

class  ACE_Configuration_Value_IntId
 The section hash table internal value class. More...

class  ACE_Configuration_Win32Registry
 The win32 registry implementation of a configuration database. More...

class  ACE_Section_Key_Internal
class  ACE_Section_Key_Win32
 The Win32 registry implementation of an internal section key. More...


Defines

#define ACE_CONFIG_SECTION_INDEX   "Config_Section_Index"
#define ACE_DEFAULT_CONFIG_SECTION_SIZE   16

Typedefs

typedef ACE_Allocator_Adapter<
ACE_Malloc< ACE_MMAP_MEMORY_POOL,
ACE_SYNCH_MUTEX > > 
PERSISTENT_ALLOCATOR
typedef ACE_Allocator_Adapter<
ACE_Malloc< ACE_LOCAL_MEMORY_POOL,
ACE_SYNCH_MUTEX > > 
HEAP_ALLOCATOR
typedef ACE_Hash_Map_With_Allocator<
ACE_Configuration_ExtId,
int > 
SUBSECTION_MAP
typedef ACE_Hash_Map_Manager_Ex<
ACE_Configuration_ExtId,
int, ACE_Hash< ACE_Configuration_ExtId >,
ACE_Equal_To< ACE_Configuration_ExtId >,
ACE_Null_Mutex
SUBSECTION_HASH
typedef ACE_Hash_Map_Entry<
ACE_Configuration_ExtId,
int > 
SUBSECTION_ENTRY
typedef ACE_Hash_Map_With_Allocator<
ACE_Configuration_ExtId,
ACE_Configuration_Value_IntId
VALUE_MAP
typedef ACE_Hash_Map_Manager_Ex<
ACE_Configuration_ExtId,
ACE_Configuration_Value_IntId,
ACE_Hash< ACE_Configuration_ExtId >,
ACE_Equal_To< ACE_Configuration_ExtId >,
ACE_Null_Mutex
VALUE_HASH
typedef ACE_Hash_Map_Entry<
ACE_Configuration_ExtId,
ACE_Configuration_Value_IntId
VALUE_ENTRY
typedef ACE_Hash_Map_With_Allocator<
ACE_Configuration_ExtId,
ACE_Configuration_Section_IntId
SECTION_MAP
typedef ACE_Hash_Map_Manager_Ex<
ACE_Configuration_ExtId,
ACE_Configuration_Section_IntId,
ACE_Hash< ACE_Configuration_ExtId >,
ACE_Equal_To< ACE_Configuration_ExtId >,
ACE_Null_Mutex
SECTION_HASH
typedef ACE_Hash_Map_Entry<
ACE_Configuration_ExtId,
ACE_Configuration_Section_IntId
SECTION_ENTRY


Detailed Description

Id:
Configuration.h,v 1.1.1.4.2.2 2003/06/12 12:42:24 chad Exp

Author:
Chris Hafey <chafey@stentor.com>
The ACE configuration API provides a portable abstraction for program configuration similar to the Microsoft Windows registry. The API supports a tree based hierarchy of configuration sections. Each section contains other sections or values. Values may contain string, unsigned integer and binary data.

Note:
These classes are not thread safe, if multiple threads use these classes, you are responsible for serializing access.
For examples of using this class, see:
  1. The test code in ACE_wrappers/test
  2. wxConfigViewer, a Windows like Registry Editor for ACE_Configuration
  3. TAO's IFR, it makes extensive use of ACE_Configuration

Todo:
Templatize this class with an ACE_LOCK to provide thread safety

Definition in file Configuration.h.


Define Documentation

#define ACE_CONFIG_SECTION_INDEX   "Config_Section_Index"
 

Definition at line 45 of file Configuration.h.

Referenced by ACE_Configuration_Heap::create_index.

#define ACE_DEFAULT_CONFIG_SECTION_SIZE   16
 

Definition at line 49 of file Configuration.h.


Typedef Documentation

typedef ACE_Allocator_Adapter<ACE_Malloc <ACE_LOCAL_MEMORY_POOL, ACE_SYNCH_MUTEX> > HEAP_ALLOCATOR
 

Definition at line 547 of file Configuration.h.

typedef ACE_Allocator_Adapter<ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_SYNCH_MUTEX> > PERSISTENT_ALLOCATOR
 

Definition at line 544 of file Configuration.h.

typedef ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Section_IntId> SECTION_ENTRY
 

Definition at line 716 of file Configuration.h.

typedef ACE_Hash_Map_Manager_Ex<ACE_Configuration_ExtId, ACE_Configuration_Section_IntId, ACE_Hash<ACE_Configuration_ExtId>, ACE_Equal_To<ACE_Configuration_ExtId>, ACE_Null_Mutex> SECTION_HASH
 

Definition at line 713 of file Configuration.h.

typedef ACE_Hash_Map_With_Allocator<ACE_Configuration_ExtId, ACE_Configuration_Section_IntId> SECTION_MAP
 

Definition at line 707 of file Configuration.h.

Referenced by ACE_Configuration_Heap::create_index_helper.

typedef ACE_Hash_Map_Entry<ACE_Configuration_ExtId, int> SUBSECTION_ENTRY
 

Definition at line 605 of file Configuration.h.

typedef ACE_Hash_Map_Manager_Ex<ACE_Configuration_ExtId, int, ACE_Hash<ACE_Configuration_ExtId>, ACE_Equal_To<ACE_Configuration_ExtId>, ACE_Null_Mutex> SUBSECTION_HASH
 

Definition at line 603 of file Configuration.h.

typedef ACE_Hash_Map_With_Allocator<ACE_Configuration_ExtId, int> SUBSECTION_MAP
 

Definition at line 597 of file Configuration.h.

Referenced by ACE_Configuration_Heap::section_open_helper.

typedef ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId> VALUE_ENTRY
 

Definition at line 667 of file Configuration.h.

typedef ACE_Hash_Map_Manager_Ex<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId, ACE_Hash<ACE_Configuration_ExtId>, ACE_Equal_To<ACE_Configuration_ExtId>, ACE_Null_Mutex> VALUE_HASH
 

Definition at line 664 of file Configuration.h.

typedef ACE_Hash_Map_With_Allocator<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId> VALUE_MAP
 

Definition at line 658 of file Configuration.h.

Referenced by ACE_Configuration_Heap::value_open_helper.


Generated on Mon Jun 16 11:30:38 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002