![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXSettings.h>
Inheritance diagram for FX::FXSettings:

Public Member Functions | |
| FXSettings () | |
| FXbool | parseFile (const FXString &filename, FXbool mark) |
| FXbool | unparseFile (const FXString &filename) |
| FXStringDict * | data (FXuint pos) const |
| FXStringDict * | find (const FXchar *section) const |
| FXint | readFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt,...) FX_SCANF(4 |
| const FXchar * | readStringEntry (const FXchar *section, const FXchar *key, const FXchar *def=NULL) |
| FXint | readIntEntry (const FXchar *section, const FXchar *key, FXint def=0) |
| FXuint | readUnsignedEntry (const FXchar *section, const FXchar *key, FXuint def=0) |
| FXdouble | readRealEntry (const FXchar *section, const FXchar *key, FXdouble def=0.0) |
| FXColor | readColorEntry (const FXchar *section, const FXchar *key, FXColor def=0) |
| FXint | writeFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt,...) FX_PRINTF(4 |
| FXbool | writeStringEntry (const FXchar *section, const FXchar *key, const FXchar *val) |
| FXbool | writeIntEntry (const FXchar *section, const FXchar *key, FXint val) |
| FXbool | writeUnsignedEntry (const FXchar *section, const FXchar *key, FXuint val) |
| FXbool | writeRealEntry (const FXchar *section, const FXchar *key, FXdouble val) |
| FXbool | writeColorEntry (const FXchar *section, const FXchar *key, FXColor val) |
| FXbool | deleteEntry (const FXchar *section, const FXchar *key) |
| FXbool | existingEntry (const FXchar *section, const FXchar *key) |
| FXbool | deleteSection (const FXchar *section) |
| FXbool | existingSection (const FXchar *section) |
| FXbool | clear () |
| void | setModified (FXbool mdfy=TRUE) |
| FXbool | isModified () const |
| virtual | ~FXSettings () |
This is normally used as part of FXRegistry, but can also be used separately in application that need to maintain a key-value database of their own.
|
|
Construct settings database.
|
|
|
Cleanup.
|
|
||||||||||||
|
Parse a file containing a settings database.
|
|
|
Unparse settings database into given file.
|
|
|
Obtain the string dictionary for the given section.
Reimplemented from FX::FXDict. |
|
|
Find string dictionary for the given section.
Reimplemented from FX::FXDict. |
|
||||||||||||||||||||
|
Read a formatted registry entry, using scanf-style format.
|
|
||||||||||||||||
|
Read a string registry entry; if no value is found, the default value def is returned.
|
|
||||||||||||||||
|
Read a integer registry entry; if no value is found, the default value def is returned.
|
|
||||||||||||||||
|
Read a unsigned integer registry entry; if no value is found, the default value def is returned.
|
|
||||||||||||||||
|
Read a double-precision floating point registry entry; if no value is found, the default value def is returned.
|
|
||||||||||||||||
|
Read a color value registry entry; if no value is found, the default value def is returned.
|
|
||||||||||||||||||||
|
Write a formatted registry entry, using printf-style format.
|
|
||||||||||||||||
|
Write a string registry entry.
|
|
||||||||||||||||
|
Write a integer registry entry.
|
|
||||||||||||||||
|
Write a unsigned integer registry entry.
|
|
||||||||||||||||
|
Write a double-precision floating point registry entry.
|
|
||||||||||||||||
|
Write a color value entry.
|
|
||||||||||||
|
Delete a registry entry.
|
|
||||||||||||
|
See if entry exists.
|
|
|
Delete section.
|
|
|
See if section exists.
|
|
|
Clear all sections.
Reimplemented from FX::FXDict. |
|
|
Mark as changed.
|
|
|
Is it modified.
|
|
|