version 1.20, 2004/06/09 16:08:29
|
version 1.21, 2004/07/30 18:58:19
|
|
|
#include <Pegasus/Common/ArrayInternal.h> | #include <Pegasus/Common/ArrayInternal.h> |
#include <Pegasus/Common/InternalException.h> | #include <Pegasus/Common/InternalException.h> |
#include <Pegasus/Common/AutoPtr.h> | #include <Pegasus/Common/AutoPtr.h> |
|
#include <Pegasus/Common/HashTable.h> |
#include <Pegasus/Config/ConfigPropertyOwner.h> | #include <Pegasus/Config/ConfigPropertyOwner.h> |
#include <Pegasus/Config/ConfigFileHandler.h> | #include <Pegasus/Config/ConfigFileHandler.h> |
| |
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
struct PropertyTable; |
|
|
|
/** | /** |
This class reads configuration properties from the config file, maps the | This class reads configuration properties from the config file, maps the |
properties to owners, and implements access methods. | properties to owners, and implements access methods. |
|
|
*/ | */ |
void _initPropertyTable(); | void _initPropertyTable(); |
| |
|
/** |
|
HashTable used to identify owners. |
|
*/ |
|
typedef HashTable<String, |
|
ConfigPropertyOwner*,EqualFunc<String>,HashFunc<String> > OwnerTable; |
|
|
|
/** |
|
HashTable used to identify fixed values. |
|
*/ |
|
typedef HashTable<String, |
|
const char*,EqualFunc<String>,HashFunc<String> > FixedValueTable; |
|
|
|
/** |
|
Structure used to identify properties. |
|
*/ |
|
struct PropertyTable |
|
{ |
|
OwnerTable ownerTable; |
|
FixedValueTable fixedValueTable; |
|
}; |
| |
/** | /** |
HashTable to store the config property names and | HashTable to store the config property names and |