Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

bogotel::CProperties Class Reference

#include <Properties.h>


Public Types

typedef std::map< std::string,
std::string > 
StringMap

Public Member Functions

 CProperties ()
virtual ~CProperties ()
void load (const std::string filename) throw (CPropertiesFailure)
 Loads values from filename specified.

void putAll (CProperties &prop)
 Copies all of the mappings from the specified CProperties to this CProperties.

const std::string getProperty (const std::string &strKey)
const std::string getProperty (const std::string &strKey, const std::string &strDefault)
const int getProperty (const std::string &strKey, const int iDefault)
const long getProperty (const std::string &strKey, const long lDefault)
const unsigned long getProperty (const std::string &strKey, const unsigned long ulDefault)
const int setProperty (const std::string &strKey, const int iValue)
const std::string setProperty (const std::string &strKey, const std::string &strValue)
void list (std::ostream &out)

Static Protected Attributes

const std::string _strBlank = ""

Static Private Attributes

const char *const szKeyTerminators = "=:"


Member Typedef Documentation

typedef std::map<std::string, std::string> bogotel::CProperties::StringMap
 

Definition at line 60 of file Properties.h.


Constructor & Destructor Documentation

bogotel::CProperties::CProperties  ) 
 

Definition at line 31 of file Properties.cpp.

bogotel::CProperties::~CProperties  )  [virtual]
 

Definition at line 35 of file Properties.cpp.


Member Function Documentation

void bogotel::CProperties::load const std::string  filename  )  throw (CPropertiesFailure)
 

Loads values from filename specified.

Definition at line 39 of file Properties.cpp.

Referenced by bogotel::CUtil::init().

void bogotel::CProperties::putAll CProperties &  prop  ) 
 

Copies all of the mappings from the specified CProperties to this CProperties.

Definition at line 190 of file Properties.cpp.

const std::string bogotel::CProperties::getProperty const std::string &  strKey  ) 
 

Definition at line 123 of file Properties.cpp.

References _strBlank.

Referenced by bogotel::CVoiceDev::attemptRecognition(), getProperty(), bogotel::CUtil::init(), bogotel::CMsgTransport::init(), and setProperty().

const std::string bogotel::CProperties::getProperty const std::string &  strKey,
const std::string &  strDefault
 

Definition at line 128 of file Properties.cpp.

const int bogotel::CProperties::getProperty const std::string &  strKey,
const int  iDefault
 

Definition at line 138 of file Properties.cpp.

References getProperty().

const long bogotel::CProperties::getProperty const std::string &  strKey,
const long  lDefault
 

Definition at line 145 of file Properties.cpp.

References getProperty().

const unsigned long bogotel::CProperties::getProperty const std::string &  strKey,
const unsigned long  ulDefault
 

Definition at line 152 of file Properties.cpp.

References getProperty().

const int bogotel::CProperties::setProperty const std::string &  strKey,
const int  iValue
 

Definition at line 166 of file Properties.cpp.

const std::string bogotel::CProperties::setProperty const std::string &  strKey,
const std::string &  strValue
 

Definition at line 159 of file Properties.cpp.

References getProperty().

void bogotel::CProperties::list std::ostream &  out  ) 
 

Definition at line 173 of file Properties.cpp.


Field Documentation

const std::string bogotel::CProperties::_strBlank = "" [static, protected]
 

Definition at line 29 of file Properties.cpp.

Referenced by getProperty().

const char *const bogotel::CProperties::szKeyTerminators = "=:" [static, private]
 

Definition at line 28 of file Properties.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 12:42:25 2003 for bogotel by doxygen 1.3. Hosted by SourceForge.net Logo