
Supported option values are
string float int char bool Bindings may be saved to and loaded from XML files.
Public Types | |
| typedef std::map< std::string, OptionValue > | Map |
Public Member Functions | |
| void | clear () |
| OptionValue | get (const std::string &key, OptionValue def=0, bool add=false) |
| retrieves a value | |
| void | load (const std::string &file, bool clear=true) |
loads settings from file | |
| Options () | |
| void | remove (const std::string &key) |
| void | save (const std::string &file) const |
| saves settings to a file | |
| void | set (const std::string &key, OptionValue val) |
| sets a value | |
| ~Options () | |
Public Attributes | |
| Map | options |
Classes | |
| class | OptionValue |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
retrieves a value
If
|
|
||||||||||||
|
loads settings from
If
|
|
|
|
|
|
saves settings to a file
|
|
||||||||||||
|
sets a value
If set("foo",OptionValue(true)); set("foo",true); |
|
|
|
1.4.3