|
|
| FileBackedPreferences (const std::string &directory, const std::string &name, FilePreferenceSaverThread *saver_thread) |
| |
| virtual bool | Load () |
| |
| virtual bool | Save () const |
| |
| bool | LoadFromFile (const std::string &filename) |
| | Load these preferences from a file. More...
|
| |
| std::string | ConfigLocation () const |
| | The location of where these preferences are stored. More...
|
| |
|
| MemoryPreferences (const std::string name) |
| |
| virtual void | Clear () |
| |
| virtual void | SetValue (const std::string &key, const std::string &value) |
| | Set a preference value, overriding the existing value. More...
|
| |
| virtual void | SetValue (const std::string &key, unsigned int value) |
| | Set a preference value, overriding the existing value. This helper accepts an unsigned int. More...
|
| |
| virtual void | SetValue (const std::string &key, int value) |
| | Set a preference value, overriding the existing value. This helper accepts an int. More...
|
| |
| virtual void | SetMultipleValue (const std::string &key, const std::string &value) |
| | Adds this preference value to the store. More...
|
| |
| virtual void | SetMultipleValue (const std::string &key, unsigned int value) |
| | Adds this preference value to the store. This helper accepts an unsigned int. More...
|
| |
| virtual void | SetMultipleValue (const std::string &key, int value) |
| | Adds this preference value to the store. This helper accepts an int. More...
|
| |
| virtual bool | SetDefaultValue (const std::string &key, const Validator &validator, const std::string &value) |
| | Set a preference value if it doesn't already exist, or if it exists and doesn't pass the validator. More...
|
| |
| virtual bool | SetDefaultValue (const std::string &key, const Validator &validator, const char value[]) |
| | Set a preference value if it doesn't already exist, or if it exists and doesn't pass the validator. This helper accepts a char array to force it to a string. More...
|
| |
| virtual bool | SetDefaultValue (const std::string &key, const Validator &validator, unsigned int value) |
| | Set a preference value if it doesn't already exist, or if it exists and doesn't pass the validator. This helper accepts an unsigned int value. More...
|
| |
| virtual bool | SetDefaultValue (const std::string &key, const Validator &validator, int value) |
| | Set a preference value if it doesn't already exist, or if it exists and doesn't pass the validator. This helper accepts an int value. More...
|
| |
| virtual bool | SetDefaultValue (const std::string &key, const Validator &validator, bool value) |
| | Set a preference value if it doesn't already exist, or if it exists and doesn't pass the validator. This helper accepts a bool value. More...
|
| |
| virtual std::string | GetValue (const std::string &key) const |
| | Get a preference value. More...
|
| |
| virtual std::vector< std::string > | GetMultipleValue (const std::string &key) const |
| | Returns all preference values corresponding to this key. More...
|
| |
| virtual bool | HasKey (const std::string &key) const |
| | Check if a preference key exists. More...
|
| |
| virtual void | RemoveValue (const std::string &key) |
| | Remove a preference value. More...
|
| |
| virtual bool | GetValueAsBool (const std::string &key) const |
| | Get a preference value as a bool. More...
|
| |
| virtual void | SetValueAsBool (const std::string &key, bool value) |
| | Set a value as a bool. More...
|
| |
|
bool | operator== (const MemoryPreferences &other) |
| |
|
| Preferences (const std::string name) |
| |
| virtual | ~Preferences () |
| |