Public Types | Public Member Functions | Static Public Member Functions

SettingsMgr Class Reference

Wraps class Settings. More...

#include <settings.h>

List of all members.

Public Types

enum  ValueType {
  kInt, kDouble, kBool, kString,
  kEnum, kNotFound
}

Public Member Functions

 SettingsMgr (Ftk const *F)
const Settingsm () 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

Detailed Description

Wraps class Settings.

Definition at line 53 of file settings.h.


The documentation for this class was generated from the following files:

Generated on Mon Jul 18 2011 17:25:28 for Fityk by Doxygen 1.7.1