## class XGPreferences

> Declared in <XPreferences.h>

> The preferences record. While this exists, the preferences file is open and can be modified.

Construction/Destruction

> XGPreferences::XGPreferences
> XGPreferences::XGPreferences
> XGPreferences::XGPreferences
> XGPreferences::~XGPreferences

Get/Set Values

> XGPreferences::DeleteValue
> XGPreferences::GetBoolean
> XGPreferences::GetInteger
> XGPreferences::GetString
> XGPreferences::SetBoolean
> XGPreferences::SetInteger
> XGPreferences::SetString

Construction/Destruction

XGPreferences::XGPreferences

> Usage: XGPreferences::XGPreferences(char*file)

> Construct me. This is the Unix version, which takes the name of the file to store in the user's home directory

XGPreferences::XGPreferences

> Usage: XGPreferences::XGPreferences(char*company,char*program,char*version)

> Construct me. This is the Windows version, which takes the name of the company, program and version information for storing this collection of definitions in the registry file.

XGPreferences::XGPreferences

> Usage: void XGPostWinOSError::GetErrorString(DWORD err,char*str)

> Construct me. This is the Macintosh version, which takes the name of the file to store in the Preferences Folder, and the creator type

XGPreferences::~XGPreferences

> Usage: XGPreferences::~XGPreferences()

> Delete preferences data

Get/Set Values

XGPreferences::DeleteValue

> Usage: void XGPreferences::DeleteValue(char*key)

> Delete this key

XGPreferences::GetBoolean

> Usage: bool XGPreferences::GetBoolean(char*key)

> Get boolean value

XGPreferences::GetInteger

> Usage: long XGPreferences::GetInteger(char*key)

> Get integer

XGPreferences::GetString

> Usage: void XGPreferences::GetString(char*key,char*string)

> Get the string value

XGPreferences::SetBoolean

> Usage: void XGPreferences::SetBoolean(char*key,bool value)

> Set the boolean value

XGPreferences::SetInteger

> Usage: void XGPreferences::SetInteger(char*key,long value)

> Set integer value

XGPreferences::SetString

> Usage: void XGPreferences::SetString(char*key,char*string)

> Set the string value