Public Methods |
virtual const char* | GetFileName () const=0 |
| Get configuration file name. More...
|
virtual iVFS* | GetVFS () const=0 |
| Get the VFS object on which this file is stored (if any). More...
|
virtual void | SetFileName (const char *, iVFS *)=0 |
| Set config file name. More...
|
virtual bool | Load (const char *iFileName, iVFS *=NULL, bool Merge=false, bool NewWins=true)=0 |
| Load a configuration file. More...
|
virtual bool | Save ()=0 |
| Save configuration to the same place from which it was loaded. More...
|
virtual bool | Save (const char *iFileName, iVFS *=NULL)=0 |
| Save configuration into the given file (on VFS or on the physical filesystem). More...
|
virtual void | Clear ()=0 |
| Delete all options and rewind all iterators.
|
virtual iConfigIterator* | Enumerate (const char *Subsection=NULL)=0 |
| Enumerate selected keys. More...
|
virtual bool | KeyExists (const char *Key) const=0 |
| Test if a key exists.
|
virtual bool | SubsectionExists (const char *Subsection) const=0 |
| Test if at least one key exists with the given Subsection prefix.
|
virtual int | GetInt (const char *Key, int Def=0) const=0 |
| Get an integer value from the configuration.
|
virtual float | GetFloat (const char *Key, float Def=0.0) const=0 |
| Get a float value from the configuration.
|
virtual const char* | GetStr (const char *Key, const char *Def="") const=0 |
| Get a string value from the configuration.
|
virtual bool | GetBool (const char *Key, bool Def=false) const=0 |
| Get a boolean value from the configuration.
|
virtual const char* | GetComment (const char *Key) const=0 |
| Get the comment of the given key, or NULL if no comment exists.
|
virtual void | SetStr (const char *Key, const char *Val)=0 |
| Set an null-terminated string value.
|
virtual void | SetInt (const char *Key, int Value)=0 |
| Set an integer value.
|
virtual void | SetFloat (const char *Key, float Value)=0 |
| Set a floating-point value.
|
virtual void | SetBool (const char *Key, bool Value)=0 |
| Set a boolean value.
|
virtual bool | SetComment (const char *Key, const char *Text)=0 |
| Set the comment for given key. More...
|
virtual void | DeleteKey (const char *Key)=0 |
| Delete a key and its value and comment.
|
virtual const char* | GetEOFComment () const=0 |
| return the final comment at the end of the configuration file.
|
virtual void | SetEOFComment (const char *Text)=0 |
| set the final comment at the end of the configuration file.
|