|
#include <CATPrefs.h>
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 () |
| CATXMLObject * | FindPref (const CATString &prefSection, const CATString &prefName) |
| CATXMLObject * | FindSection (const CATString &prefSection) |
Private Attributes | |
| CATString | fPrefFile |
| CATXMLObject * | fRootNode |
| CATMutex | fPrefLock |
1.5.4