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

CSettings Class Reference

Configuration class. More...

#include <settings.h>

List of all members.

Public Methods

 CSettings ()
 Constructor.

 ~CSettings ()
 Destructor.

bool Load (const char *szFilename)
 Load settings from file.

bool Save (const char *szFilename)
 Save settings to file.

const char* FindSetting (const char *szKey)
 Return string value associated with given key.

void SetSetting (const char *szKey, const char *szValue)
 Set the value of the given key.

void SetDefaultSetting (const char *szKey, const char *szValue)
 Set the "default" setting. The given value will only be associated with this key if this key does not already exist in the settings database.

void DeleteSetting (const char *szKey)
 Delete a specific setting given its key.

void DeleteAllSettings ()
 Delete all settings.

int FindSettingInt (const char *szKey)
 Return integer value associated with given key.

void SetDefaultSettingInt (const char *szKey, int nValue)
 Set default setting, but with integer value.

void SetSettingInt (const char *szKey, int nValue)
 Set the integer value of the given key.


Protected Attributes

vector<SSetting> m_aSettings


Detailed Description

Configuration class.


The documentation for this class was generated from the following file:

http://www.scorpioncity.com/djgame.html
Copyright (C) David Joffe. Generated: 23 Sep 2001