17#ifndef __file_config_h__
18#define __file_config_h__
33 static void set (
const std::string& key,
const std::string&
value) {
36 static std::string
get (
const std::string& key) {
37 const KeyValues::const_iterator i = config.find (key);
38 return (i != config.end() ? i->second :
"");
40 static std::string
get (
const std::string& key,
const std::string& default_value) {
41 KeyValues::iterator i = config.find (key);
42 return (i != config.end() ? i->second : default_value);
45 static bool get_bool (
const std::string& key,
bool default_value);
46 static int get_int (
const std::string& key,
int default_value);
47 static float get_float (
const std::string& key,
float default_value);
48 static void get_RGB (
const std::string& key,
float* ret,
float default_R,
float default_G,
float default_B);
static bool get_bool(const std::string &key, bool default_value)
static std::string get(const std::string &key)
static std::string get(const std::string &key, const std::string &default_value)
static void set(const std::string &key, const std::string &value)
static float get_float(const std::string &key, float default_value)
static void get_RGB(const std::string &key, float *ret, float default_R, float default_G, float default_B)
static int get_int(const std::string &key, int default_value)
VectorType::Scalar value(const VectorType &coefs, typename VectorType::Scalar cos_elevation, typename VectorType::Scalar cos_azimuth, typename VectorType::Scalar sin_azimuth, int lmax)
std::map< std::string, std::string > KeyValues
used in various places for storing key-value pairs