Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

SystemProperties Class Reference

#include <SystemProperties.h>

Collaboration diagram for SystemProperties:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Configuration_Section_Key SectionKey_t
typedef ACE_Configuration::VALUETYPE Valuetype_t

Public Member Functions

 SystemProperties ()
virtual ~SystemProperties ()
int GetStringEntry (const char *sectionName, const char *name, std::string &value)
int GetIntegerEntry (const char *sectionName, const char *name, unsigned int &value)
int GetDoubleEntry (const char *sectionName, const char *name, double &value)
int GetBinaryEntry (const char *sectionName, const char *name, void *&value, size_t &length)
int GetBooleanEntry (const char *sectionName, const char *name, bool &value)
int GetStringEntry (const SectionKey_t &parent, const char *name, std::string &value)
int GetIntegerEntry (const SectionKey_t &parent, const char *name, unsigned int &value)
int GetDoubleEntry (const SectionKey_t &parent, const char *name, double &value)
int GetBinaryEntry (const SectionKey_t &parent, const char *name, void *&value, size_t &length)
int GetBooleanEntry (const SectionKey_t &parent, const char *name, bool &value)
int SetStringEntry (const char *sectionName, const char *name, const char *value)
int SetIntegerEntry (const char *sectionName, const char *name, unsigned int value)
int SetDoubleEntry (const char *sectionName, const char *name, double value)
int SetBinaryEntry (const char *sectionName, const char *name, const void *value, size_t length)
int SetBooleanEntry (const char *sectionName, const char *name, bool value)
int SetStringEntry (const SectionKey_t &parent, const char *name, const char *value)
int SetIntegerEntry (const SectionKey_t &parent, const char *name, unsigned int value)
int SetDoubleEntry (const SectionKey_t &parent, const char *name, double value)
int SetBinaryEntry (const SectionKey_t &parent, const char *name, const void *value, size_t length)
int SetBooleanEntry (const SectionKey_t &parent, const char *name, bool value)
int GetSectionKey (const char *sectionName, SectionKey_t &key, bool createNew=false)
int GetSectionKey (const SectionKey_t &parent, const char *sectionName, SectionKey_t &key, bool createNew=false)
int EnumerateSections (int index, std::string &name)
int EnumerateSections (const SectionKey_t &parent, int index, std::string &name)
int EnumerateEntries (int index, std::string &name, Valuetype_t &valuetype)
int EnumerateEntries (const SectionKey_t &parent, int index, std::string &name, Valuetype_t &valuetype)
int ImportPropertiesRegistry (const char *filename)
int ExportPropertiesRegistry (const char *filename)
int ImportPropertiesIni (const char *filename)
int ExportPropertiesIni (const char *filename)

Static Public Member Functions

SystemPropertiesInstance (const char *configFilename="System.config", bool registryFormat=false)

Static Protected Attributes

SystemPropertiesm_pInstance

Member Typedef Documentation

typedef ACE_Configuration_Section_Key SystemProperties::SectionKey_t
 

Definition at line 66 of file SystemProperties.h.

Referenced by GetBinaryEntry(), GetBooleanEntry(), GetDoubleEntry(), GetIntegerEntry(), GetStringEntry(), SetBinaryEntry(), SetBooleanEntry(), SetDoubleEntry(), SetIntegerEntry(), and SetStringEntry().

typedef ACE_Configuration::VALUETYPE SystemProperties::Valuetype_t
 

Definition at line 67 of file SystemProperties.h.

Referenced by GetBooleanEntry().


Constructor & Destructor Documentation

SystemProperties::SystemProperties  ) 
 

Definition at line 44 of file SystemProperties.cpp.

Referenced by Instance().

virtual SystemProperties::~SystemProperties  )  [inline, virtual]
 

Definition at line 75 of file SystemProperties.h.


Member Function Documentation

int SystemProperties::EnumerateEntries const SectionKey_t parent,
int  index,
std::string &  name,
Valuetype_t valuetype
 

Definition at line 659 of file SystemProperties.cpp.

int SystemProperties::EnumerateEntries int  index,
std::string &  name,
Valuetype_t valuetype
 

Definition at line 651 of file SystemProperties.cpp.

int SystemProperties::EnumerateSections const SectionKey_t parent,
int  index,
std::string &  name
 

Definition at line 635 of file SystemProperties.cpp.

int SystemProperties::EnumerateSections int  index,
std::string &  name
 

Definition at line 628 of file SystemProperties.cpp.

Referenced by VehicleNetConfig::Init().

int SystemProperties::ExportPropertiesIni const char *  filename  ) 
 

Definition at line 721 of file SystemProperties.cpp.

int SystemProperties::ExportPropertiesRegistry const char *  filename  ) 
 

Definition at line 703 of file SystemProperties.cpp.

int SystemProperties::GetBinaryEntry const SectionKey_t parent,
const char *  name,
void *&  value,
size_t &  length
 

Definition at line 207 of file SystemProperties.cpp.

References value.

int SystemProperties::GetBinaryEntry const char *  sectionName,
const char *  name,
void *&  value,
size_t &  length
 

Definition at line 96 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

int SystemProperties::GetBooleanEntry const SectionKey_t parent,
const char *  name,
bool &  value
 

Definition at line 334 of file SystemProperties.cpp.

References value, and Valuetype_t.

int SystemProperties::GetBooleanEntry const char *  sectionName,
const char *  name,
bool &  value
 

Definition at line 113 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

Referenced by PropertyBasedCommFactory::Open().

int SystemProperties::GetDoubleEntry const SectionKey_t parent,
const char *  name,
double &  value
 

Definition at line 183 of file SystemProperties.cpp.

References value.

int SystemProperties::GetDoubleEntry const char *  sectionName,
const char *  name,
double &  value
 

Definition at line 81 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

int SystemProperties::GetIntegerEntry const SectionKey_t parent,
const char *  name,
unsigned int &  value
 

Definition at line 146 of file SystemProperties.cpp.

References value.

int SystemProperties::GetIntegerEntry const char *  sectionName,
const char *  name,
unsigned int &  value
 

Definition at line 66 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

Referenced by VehicleNetConfig::Init(), and PropertyBasedCommFactory::Open().

int SystemProperties::GetSectionKey const SectionKey_t parent,
const char *  sectionName,
SectionKey_t key,
bool  createNew = false
 

Definition at line 685 of file SystemProperties.cpp.

int SystemProperties::GetSectionKey const char *  sectionName,
SectionKey_t key,
bool  createNew = false
 

Definition at line 676 of file SystemProperties.cpp.

Referenced by GetBinaryEntry(), GetBooleanEntry(), GetDoubleEntry(), GetIntegerEntry(), GetStringEntry(), VehicleNetConfig::Init(), PropertyBasedCommFactory::Open(), SetBinaryEntry(), SetBooleanEntry(), SetDoubleEntry(), SetIntegerEntry(), and SetStringEntry().

int SystemProperties::GetStringEntry const SectionKey_t parent,
const char *  name,
std::string &  value
 

Definition at line 130 of file SystemProperties.cpp.

References value.

int SystemProperties::GetStringEntry const char *  sectionName,
const char *  name,
std::string &  value
 

Definition at line 51 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

Referenced by VehicleNetConfig::Init(), and PropertyBasedCommFactory::Open().

int SystemProperties::ImportPropertiesIni const char *  filename  ) 
 

Definition at line 712 of file SystemProperties.cpp.

Referenced by Instance().

int SystemProperties::ImportPropertiesRegistry const char *  filename  ) 
 

Definition at line 694 of file SystemProperties.cpp.

Referenced by Instance().

SystemProperties * SystemProperties::Instance const char *  configFilename = "System.config",
bool  registryFormat = false
[static]
 

Definition at line 22 of file SystemProperties.cpp.

References ImportPropertiesIni(), ImportPropertiesRegistry(), s_pInstance, and SystemProperties().

Referenced by VehicleNetConfig::Init(), and main().

int SystemProperties::SetBinaryEntry const SectionKey_t parent,
const char *  name,
const void *  value,
size_t  length
 

Definition at line 599 of file SystemProperties.cpp.

References value.

int SystemProperties::SetBinaryEntry const char *  sectionName,
const char *  name,
const void *  value,
size_t  length
 

Definition at line 509 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

int SystemProperties::SetBooleanEntry const SectionKey_t parent,
const char *  name,
bool  value
 

Definition at line 614 of file SystemProperties.cpp.

References value.

int SystemProperties::SetBooleanEntry const char *  sectionName,
const char *  name,
bool  value
 

Definition at line 532 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

int SystemProperties::SetDoubleEntry const SectionKey_t parent,
const char *  name,
double  value
 

Definition at line 582 of file SystemProperties.cpp.

int SystemProperties::SetDoubleEntry const char *  sectionName,
const char *  name,
double  value
 

Definition at line 484 of file SystemProperties.cpp.

References GetSectionKey(), and SectionKey_t.

int SystemProperties::SetIntegerEntry const SectionKey_t parent,
const char *  name,
unsigned int  value
 

Definition at line 568 of file SystemProperties.cpp.

References value.

int SystemProperties::SetIntegerEntry const char *  sectionName,
const char *  name,
unsigned int  value
 

Definition at line 462 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.

int SystemProperties::SetStringEntry const SectionKey_t parent,
const char *  name,
const char *  value
 

Definition at line 554 of file SystemProperties.cpp.

References value.

int SystemProperties::SetStringEntry const char *  sectionName,
const char *  name,
const char *  value
 

Definition at line 440 of file SystemProperties.cpp.

References GetSectionKey(), SectionKey_t, and value.


Member Data Documentation

SystemProperties* SystemProperties::m_pInstance [static, protected]
 

Definition at line 414 of file SystemProperties.h.


The documentation for this class was generated from the following files:
Generated on Wed Sep 5 12:54:43 2007 for DSACSS Operational Code by  doxygen 1.3.9.1