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

Public Member Functions | |
| FXSettings () | |
| FXSettings (const FXSettings &orig) | |
| FXSettings & | operator= (const FXSettings &orig) |
| bool | parseFile (const FXString &filename, bool mark) |
| bool | 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 |
| FXint 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) |
| FXbool | readBoolEntry (const FXchar *section, const FXchar *key, FXbool def=FALSE) |
| FXint | writeFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt,...) FX_PRINTF(4 |
| FXint bool | writeStringEntry (const FXchar *section, const FXchar *key, const FXchar *val) |
| bool | writeIntEntry (const FXchar *section, const FXchar *key, FXint val) |
| bool | writeUnsignedEntry (const FXchar *section, const FXchar *key, FXuint val) |
| bool | writeRealEntry (const FXchar *section, const FXchar *key, FXdouble val) |
| bool | writeColorEntry (const FXchar *section, const FXchar *key, FXColor val) |
| bool | writeBoolEntry (const FXchar *section, const FXchar *key, FXbool val) |
| bool | deleteEntry (const FXchar *section, const FXchar *key) |
| bool | existingEntry (const FXchar *section, const FXchar *key) |
| bool | deleteSection (const FXchar *section) |
| bool | existingSection (const FXchar *section) |
| bool | clear () |
| void | setModified (bool mdfy=true) |
| bool | isModified () const |
| virtual | ~FXSettings () |
This is normally used as part of Registry, but can also be used separately in applications that need to maintain a key-value database in a file of their own. String values can contain any character, and will be escaped when written to the file.
|
|
Construct settings database.
|
|
|
Construct copy of existing database.
|
|
|
Cleanup.
|
|
|
Assignment operator.
|
|
||||||||||||
|
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; may be NULL.
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.
|
|
||||||||||||||||
|
Read a boolean registry entry.
|
|
||||||||||||||||||||
|
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.
|
|
||||||||||||||||
|
Write a boolean 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.
|
|
|