Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CSettingsStore Class Reference

#include <SettingsStore.h>

List of all members.

Public Member Functions

bool GetBoolOption (const std::string &Key)
long GetLongOption (const std::string &Key)
std::string & GetStringOption (const std::string &Key)
void SetBoolOption (const std::string &Key, bool Value)
void SetLongOption (const std::string &Key, long Value)
void SetStringOption (const std::string &Key, const std::string &Value)
void SetBoolDefault (const std::string &Key, bool Value)
void SetLongDefault (const std::string &Key, long Value)
void SetStringDefault (const std::string &Key, const std::string &Value)

Private Member Functions

virtual bool LoadSetting (const std::string &Key, bool *Value)
 Load a setting with a boolean value.

virtual bool LoadSetting (const std::string &Key, long *Value)
 Load a setting with a long value.

virtual bool LoadSetting (const std::string &Key, std::string *Value)
 Load a setting with a string value.

virtual void SaveSetting (const std::string &Key, bool Value)
 Save a setting with a boolean value.

virtual void SaveSetting (const std::string &Key, long Value)
 Save a setting with a long value.

virtual void SaveSetting (const std::string &Key, const std::string &Value)
 Save a setting with a string value.


Private Attributes

std::map< std::string, bool > BoolMap
std::map< std::string, long > LongMap
std::map< std::string, std::string > StringMap


Member Function Documentation

bool CSettingsStore::GetBoolOption const std::string &    Key
 

long CSettingsStore::GetLongOption const std::string &    Key
 

std::string& CSettingsStore::GetStringOption const std::string &    Key
 

virtual bool CSettingsStore::LoadSetting const std::string &    Key,
std::string *    Value
[private, virtual]
 

Load a setting with a string value. Return true if successful

Parameters:
Key Name of the setting
Value Value of the setting, UTF8 encoded

virtual bool CSettingsStore::LoadSetting const std::string &    Key,
long *    Value
[private, virtual]
 

Load a setting with a long value. Return true if successful

Parameters:
Key Name of the setting
Value Value of the setting

virtual bool CSettingsStore::LoadSetting const std::string &    Key,
bool *    Value
[private, virtual]
 

Load a setting with a boolean value. Return true if successful

Parameters:
Key Name of the setting
Value Value of the setting

virtual void CSettingsStore::SaveSetting const std::string &    Key,
const std::string &    Value
[private, virtual]
 

Parameters:
Key Name of the setting
Value Value of the setting, UTF8 encoded

virtual void CSettingsStore::SaveSetting const std::string &    Key,
long    Value
[private, virtual]
 

Parameters:
Key Name of the setting
Value Value of the setting

virtual void CSettingsStore::SaveSetting const std::string &    Key,
bool    Value
[private, virtual]
 

Parameters:
Key Name of the setting
Value Value of the setting

void CSettingsStore::SetBoolDefault const std::string &    Key,
bool    Value
 

void CSettingsStore::SetBoolOption const std::string &    Key,
bool    Value
 

void CSettingsStore::SetLongDefault const std::string &    Key,
long    Value
 

void CSettingsStore::SetLongOption const std::string &    Key,
long    Value
 

void CSettingsStore::SetStringDefault const std::string &    Key,
const std::string &    Value
 

void CSettingsStore::SetStringOption const std::string &    Key,
const std::string &    Value
 


Member Data Documentation

std::map<std::string, bool> CSettingsStore::BoolMap [private]
 

std::map<std::string, long> CSettingsStore::LongMap [private]
 

std::map<std::string, std::string> CSettingsStore::StringMap [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 14 15:47:09 2003 for Dasher by doxygen1.3-rc3