Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATPrefs Class Reference

CATPrefs Class Reference
[GUI Application library for CAT]

#include <CATPrefs.h>

List of all members.


Detailed Description

Preference storage class.

Changing this up a bit... making the interface more neutral for various types of storage. Probably moving to registry for prefs on Windows for now.

Definition at line 30 of file CATPrefs.h.


Public Member Functions

 CATPrefs (const CATString &appName="")
virtual ~CATPrefs ()
bool GetPref (const CATString &prefSection, const CATString &prefName, CATString &prefValue)
template<class T>
bool GetPref (const CATString &prefSection, const CATString &prefName, T &prefValue)
bool SetPref (const CATString &prefSection, const CATString &prefName, const CATString &prefValue)
template<class T>
bool SetPref (const CATString &prefSection, const CATString &prefName, const T prefValue)
virtual CATResult Save ()
 Save() save prefs to registry/file.
virtual CATResult Load ()
 Load() loads prefs from registry/file - WARNING: clears previous prefs!
virtual CATResult Export (const CATString &path)
 Export() saves prefs to specified file location.
virtual CATResult Import (const CATString &path)
 Import() loads prefs from a specified file location.
void Clear ()
CATXMLObjectFindPref (const CATString &prefSection, const CATString &prefName)
CATXMLObjectFindSection (const CATString &prefSection)

Private Attributes

CATString fPrefFile
CATXMLObjectfRootNode
CATMutex fPrefLock

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:10:48 2008 for Game Accessibility Suite by doxygen 1.5.4