|
| | CBofOptions (const char *pszOptionsFile=nullptr) |
| | Loads specified .INI file which contains user options. More...
|
| |
| virtual | ~CBofOptions () |
| |
| ErrorCode | commit () |
| |
| ErrorCode | loadOptionFile (const char *pszFile) |
| | Loads and builds Option list. More...
|
| |
|
const char * | getFileName () const |
| |
| ErrorCode | writeSetting (const char *pszSection, const char *pszOption, const char *pszValue) |
| |
| ErrorCode | writeSetting (const char *pszSection, const char *pszOption, int nValue) |
| |
| ErrorCode | readSetting (const char *section, const char *option, char *stringValue, const char *defaultValue, uint32 nSize) |
| |
| ErrorCode | readSetting (const char *section, const char *option, int *nValue, int defaultValue) |
| |
| ErrorCode | readSetting (const char *section, const char *option, bool *boolValue, bool defaultValue) |
| |
| ErrorCode | load () |
| |
| void | release () |
| |
|
virtual void | DeleteObject () |
| |
|
|
char | _szFileName [MAX_FNAME] |
| |
|
COption * | _pOptionList |
| |
|
bool | _bDirty |
| |
|
|
static bool | isValidObject (const CBofObject *pObject) |
| |
◆ CBofOptions()
| Bagel::SpaceBar::CBofOptions::CBofOptions |
( |
const char * |
pszOptionsFile = nullptr | ) |
|
Loads specified .INI file which contains user options.
Constructor
- Parameters
-
| pszOptionsFile | Name of .INI settings file |
◆ ~CBofOptions()
| virtual Bagel::SpaceBar::CBofOptions::~CBofOptions |
( |
| ) |
|
|
virtual |
◆ commit()
| ErrorCode Bagel::SpaceBar::CBofOptions::commit |
( |
| ) |
|
Updates current option list file
- Returns
- Error return code
◆ loadOptionFile()
| ErrorCode Bagel::SpaceBar::CBofOptions::loadOptionFile |
( |
const char * |
pszFile | ) |
|
Loads and builds Option list.
Loads specified .INI options file
- Parameters
-
| pszFile | Name of .INI file to load |
- Returns
- Error return code
◆ writeSetting() [1/2]
| ErrorCode Bagel::SpaceBar::CBofOptions::writeSetting |
( |
const char * |
pszSection, |
|
|
const char * |
pszOption, |
|
|
const char * |
pszValue |
|
) |
| |
Adds or modifies 1 option in list
- Parameters
-
| pszSection | Section in .INI file |
| pszOption | Option to update |
| pszValue | New value |
- Returns
- Error return code
◆ writeSetting() [2/2]
| ErrorCode Bagel::SpaceBar::CBofOptions::writeSetting |
( |
const char * |
pszSection, |
|
|
const char * |
pszOption, |
|
|
int |
nValue |
|
) |
| |
Adds or modifies 1 option in list
- Parameters
-
| pszSection | Section in .INI file |
| pszOption | Option to update |
| nValue | New value |
- Returns
- Error return code
◆ readSetting() [1/3]
| ErrorCode Bagel::SpaceBar::CBofOptions::readSetting |
( |
const char * |
section, |
|
|
const char * |
option, |
|
|
char * |
stringValue, |
|
|
const char * |
defaultValue, |
|
|
uint32 |
nSize |
|
) |
| |
Reads value for the specified option
- Parameters
-
| section | Section in .INI file |
| option | Option to update |
| stringValue | Destination buffer for read value |
| defaultValue | Default value if not exists |
| nSize | Max length of stringValue buffer |
- Returns
- Error return code
◆ readSetting() [2/3]
| ErrorCode Bagel::SpaceBar::CBofOptions::readSetting |
( |
const char * |
section, |
|
|
const char * |
option, |
|
|
int * |
nValue, |
|
|
int |
defaultValue |
|
) |
| |
Reads value for the specified option
- Parameters
-
| section | Section in .INI file |
| option | Option to update |
| nValue | Pointer to write value to |
| defaultValue | Default value if not exists |
- Returns
- Error return code
◆ readSetting() [3/3]
| ErrorCode Bagel::SpaceBar::CBofOptions::readSetting |
( |
const char * |
section, |
|
|
const char * |
option, |
|
|
bool * |
boolValue, |
|
|
bool |
defaultValue |
|
) |
| |
Reads value for the specified option
- Parameters
-
| section | Section in .INI file |
| option | Option to update |
| boolValue | Pointer to write value to |
| defaultValue | Default value if not exists |
- Returns
- Error return code
◆ load()
| ErrorCode Bagel::SpaceBar::CBofOptions::load |
( |
| ) |
|
Loads current .INI options file
- Returns
- Error return code
◆ release()
| void Bagel::SpaceBar::CBofOptions::release |
( |
| ) |
|
Updates and Releases current option list
The documentation for this class was generated from the following file: