#include <omsettings.h>
Public Methods | |
OmSettings () | |
Create a settings object. More... | |
OmSettings (const OmSettings &other) | |
Copy constructor. More... | |
void | operator= (const OmSettings &other) |
Assignment operator. More... | |
~OmSettings () | |
Destructor. More... | |
void | set (const std::string &key, const std::string &value) |
Set an option value. More... | |
void | set (const std::string &key, const char *value) |
Set an option value. More... | |
void | set (const std::string &key, int value) |
Set an option value to an integer. More... | |
void | set (const std::string &key, double value) |
Set an option value to a real number. More... | |
void | set (const std::string &key, bool value) |
Set an option value to a boolean. More... | |
std::string | get (const std::string &key) const |
Get a setting value as a string. More... | |
std::string | get (const std::string &key, std::string def) const |
Get a setting value as a string, with default value. More... | |
int | get_int (const std::string &key) const |
Get a setting value as an integer. More... | |
int | get_int (const std::string &key, int def) const |
Get a setting value as an integer, with default value. More... | |
bool | get_bool (const std::string &key) const |
Get a setting value as a boolean. More... | |
bool | get_bool (const std::string &key, bool def) const |
Get a setting value as a boolean, with default value. More... | |
double | get_real (const std::string &key) const |
Get a setting value as an real number. More... | |
double | get_real (const std::string &key, double def) const |
Get a setting value as an real number, with default value. More... | |
std::string | get_description () const |
Returns a string representing the database group object. More... | |
Public Attributes | |
Internal * | internal |
The settings available are listed in the documentation.
|
Create a settings object.
|
|
Copy constructor. The copies are reference-counted, so copies are relatively cheap. Modifications to a copy don't affect other existing copies (the copy is copy-on-write). |
|
Destructor.
|
|
Get a setting value as a string, with default value.
|
|
Get a setting value as a string.
|
|
Get a setting value as a boolean, with default value.
|
|
Get a setting value as a boolean.
|
|
Returns a string representing the database group object. Introspection method. |
|
Get a setting value as an integer, with default value.
|
|
Get a setting value as an integer.
|
|
Get a setting value as an real number, with default value.
|
|
Get a setting value as an real number.
|
|
Assignment operator. This should be cheap. |
|
Set an option value to a boolean.
|
|
Set an option value to a real number.
|
|
Set an option value to an integer.
|
|
Set an option value.
|
|
Set an option value.
|