#include <settings.h>
Public Types | |
| enum | ValueType { kInt, kDouble, kBool, kString, kEnum, kNotFound } |
Public Member Functions | |
| SettingsMgr (Ftk const *F) | |
| const Settings & | m () const |
| std::string | get_as_string (const std::string &k) const |
| get value of option as string | |
| int | get_enum_index (const std::string &k) const |
| get kEnum index | |
| void | set_as_string (const std::string &k, const std::string &v) |
| void | set_as_number (const std::string &k, double v) |
| void | set_all (const Settings &s) |
| void | do_srand () |
| std::string | format_double (double d) const |
Static Public Member Functions | |
| static std::vector< std::string > | get_key_list (const std::string &start) |
| get all option keys that start with given string | |
| static const char ** | get_allowed_values (const std::string &k) |
| returns NULL-terminated list of values for kEnum type, NULL otherwise | |
| static ValueType | get_value_type (const std::string &k) |
| return value type of the option | |
| static std::string | get_type_desc (const std::string &k) |
| get text information about type of option k | |
Wraps class Settings.
Definition at line 53 of file settings.h.