FXSettings

class FXSettings

FXSettings is a key-value database.

Inheritance:


Public Methods

[more] FXSettings()
Construct settings database
[more]FXbool parseFile(const FXString& filename, FXbool mark)
Parse a file containing a settings database
[more]FXbool unparseFile(const FXString& filename)
Unparse settings database into given file
[more]FXStringDict* data(FXuint pos) const
Obtain the string dictionary for the given section
[more]FXStringDict* find(const FXchar* section) const
Find string dictionary for the given section
[more]FXintreadFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt, ...)(4, 5)
Read a formatted registry entry, using scanf-style format
[more]const FXchar* readStringEntry(const FXchar* section, const FXchar* key, const FXchar* def=NULL)
Read a string registry entry; if no value is found, the default value def is returned
[more]FXint readIntEntry(const FXchar* section, const FXchar* key, FXint def=0)
Read a integer registry entry; if no value is found, the default value def is returned
[more]FXuint readUnsignedEntry(const FXchar* section, const FXchar* key, FXuint def=0)
Read a unsigned integer registry entry; if no value is found, the default value def is returned
[more]FXdouble readRealEntry(const FXchar* section, const FXchar* key, FXdouble def=0.0)
Read a double-precision floating point registry entry; if no value is found, the default value def is returned
[more]FXColor readColorEntry(const FXchar* section, const FXchar* key, FXColor def=0)
Read a color value registry entry; if no value is found, the default value def is returned
[more]FXintwriteFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt, ...)(4, 5)
Write a formatted registry entry, using printf-style format
[more]FXbool writeStringEntry(const FXchar* section, const FXchar* key, const FXchar* val)
Write a string registry entry
[more]FXbool writeIntEntry(const FXchar* section, const FXchar* key, FXint val)
Write a integer registry entry
[more]FXbool writeUnsignedEntry(const FXchar* section, const FXchar* key, FXuint val)
Write a unsigned integer registry entry
[more]FXbool writeRealEntry(const FXchar* section, const FXchar* key, FXdouble val)
Write a double-precision floating point registry entry
[more]FXbool writeColorEntry(const FXchar* section, const FXchar* key, FXColor val)
Write a color value entry
[more]FXbool deleteEntry(const FXchar* section, const FXchar* key)
Delete a registry entry
[more]FXbool existingEntry(const FXchar* section, const FXchar* key)
See if entry exists
[more]FXbool deleteSection(const FXchar* section)
Delete section
[more]FXbool existingSection(const FXchar* section)
See if section exists
[more]FXbool clear()
Clear all sections
[more]void setModified(FXbool mdfy=TRUE)
Mark as changed
[more]FXbool isModified() const
Is it modified
[more]virtual ~FXSettings()
Cleanup


Inherited from FXDict:

Public Methods

oFXint size() const
ovoid size(FXint m)
oFXint no() const
ovoid* insert(const FXchar* ky, const void* ptr, FXbool mrk=FALSE)
ovoid* replace(const FXchar* ky, const void* ptr, FXbool mrk=FALSE)
ovoid* remove(const FXchar* ky)
oconst FXchar* key(FXuint pos) const
oFXbool mark(FXuint pos) const
oFXint first() const
oFXint last() const
oFXint next(FXint pos) const
oFXint prev(FXint pos) const

Protected Methods

ovirtual void* createData(const void*)
ovirtual void deleteData(void*)


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const
ovirtual void save(FXStream& store) const
ovirtual void load(FXStream& store)


Documentation

FXSettings is a key-value database. 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.
o FXSettings()
Construct settings database

oFXbool parseFile(const FXString& filename, FXbool mark)
Parse a file containing a settings database

oFXbool unparseFile(const FXString& filename)
Unparse settings database into given file

oFXStringDict* data(FXuint pos) const
Obtain the string dictionary for the given section

oFXStringDict* find(const FXchar* section) const
Find string dictionary for the given section

oFXintreadFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt, ...)(4, 5)
Read a formatted registry entry, using scanf-style format

oconst FXchar* readStringEntry(const FXchar* section, const FXchar* key, const FXchar* def=NULL)
Read a string registry entry; if no value is found, the default value def is returned

oFXint readIntEntry(const FXchar* section, const FXchar* key, FXint def=0)
Read a integer registry entry; if no value is found, the default value def is returned

oFXuint readUnsignedEntry(const FXchar* section, const FXchar* key, FXuint def=0)
Read a unsigned integer registry entry; if no value is found, the default value def is returned

oFXdouble readRealEntry(const FXchar* section, const FXchar* key, FXdouble def=0.0)
Read a double-precision floating point registry entry; if no value is found, the default value def is returned

oFXColor readColorEntry(const FXchar* section, const FXchar* key, FXColor def=0)
Read a color value registry entry; if no value is found, the default value def is returned

oFXintwriteFormatEntry (const FXchar *section, const FXchar *key, const FXchar *fmt, ...)(4, 5)
Write a formatted registry entry, using printf-style format

oFXbool writeStringEntry(const FXchar* section, const FXchar* key, const FXchar* val)
Write a string registry entry

oFXbool writeIntEntry(const FXchar* section, const FXchar* key, FXint val)
Write a integer registry entry

oFXbool writeUnsignedEntry(const FXchar* section, const FXchar* key, FXuint val)
Write a unsigned integer registry entry

oFXbool writeRealEntry(const FXchar* section, const FXchar* key, FXdouble val)
Write a double-precision floating point registry entry

oFXbool writeColorEntry(const FXchar* section, const FXchar* key, FXColor val)
Write a color value entry

oFXbool deleteEntry(const FXchar* section, const FXchar* key)
Delete a registry entry

oFXbool existingEntry(const FXchar* section, const FXchar* key)
See if entry exists

oFXbool deleteSection(const FXchar* section)
Delete section

oFXbool existingSection(const FXchar* section)
See if section exists

oFXbool clear()
Clear all sections

ovoid setModified(FXbool mdfy=TRUE)
Mark as changed

oFXbool isModified() const
Is it modified

ovirtual ~FXSettings()
Cleanup


Direct child classes:
FXRegistry

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.