#include <scim_config_base.h>
Inheritance diagram for scim::DummyConfig:
Public Member Functions | |
DummyConfig (const String &app_name=String("scim")) | |
virtual | ~DummyConfig () |
virtual bool | valid () const |
Check if this Config object is valid. | |
virtual bool | read (const String &key, String *ret) const |
Read a string from the given key. | |
virtual bool | read (const String &key, int *ret) const |
Read an int value from the given key. | |
virtual bool | read (const String &key, double *ret) const |
Read a double value from the given key. | |
virtual bool | read (const String &key, bool *ret) const |
Read a bool value from the given key. | |
virtual bool | read (const String &key, std::vector< String > *ret) const |
Read a string list from the given key. | |
virtual bool | read (const String &key, std::vector< int > *ret) const |
Read an int list from the given key. | |
virtual bool | write (const String &key, const String &value) |
Write a string to the given key. | |
virtual bool | write (const String &key, int value) |
Write an int value to the given key. | |
virtual bool | write (const String &key, double value) |
Write a double value to the given key. | |
virtual bool | write (const String &key, bool value) |
Write a bool value to the given key. | |
virtual bool | write (const String &key, const std::vector< String > &value) |
Write a string list to the given key. | |
virtual bool | write (const String &key, const std::vector< int > &value) |
Write an int list to the given key. | |
virtual bool | flush () |
Permanently writes all changes. | |
virtual bool | erase (const String &key) |
Erase a key and its value. |
The read methods will just return false and the default value (if available). The write methods will do nothing.
Definition at line 342 of file scim_config_base.h.
|
|
|
|
|
Check if this Config object is valid.
Implements scim::ConfigBase. |
|
Read a string from the given key.
Implements scim::ConfigBase. |
|
Read an int value from the given key.
Implements scim::ConfigBase. |
|
Read a double value from the given key.
Implements scim::ConfigBase. |
|
Read a bool value from the given key.
Implements scim::ConfigBase. |
|
Read a string list from the given key.
Implements scim::ConfigBase. |
|
Read an int list from the given key.
Implements scim::ConfigBase. |
|
Write a string to the given key.
Implements scim::ConfigBase. |
|
Write an int value to the given key.
Implements scim::ConfigBase. |
|
Write a double value to the given key.
Implements scim::ConfigBase. |
|
Write a bool value to the given key.
Implements scim::ConfigBase. |
|
Write a string list to the given key.
Implements scim::ConfigBase. |
|
Write an int list to the given key.
Implements scim::ConfigBase. |
|
Permanently writes all changes.
Implements scim::ConfigBase. |
|
Erase a key and its value.
Implements scim::ConfigBase. |