1 #ifndef Protium_FunctionMapped_h_
2 #define Protium_FunctionMapped_h_
13 virtual void Set(
const std::string& key,
const std::string& value )=0;
16 template<
class Derived>
18 typedef void (Derived::*
d_func)(double);
19 typedef std::map<std::string, d_func>
func_map;
23 d_config.insert(std::make_pair(value,f));
25 void Set(
const std::string& value,
const std::string& value){
26 double newValue = std::atof(value.c_str() );
29 Derived* d =
dynamic_cast<Derived*
>(
this);
37 #endif //File Guardian
std::map< std::string, d_func > func_map
void AddValueToMap(const std::string &value, d_func f)
virtual ~FunctionMappedPrototype()
void Set(const std::string &value, const std::string &value)
virtual void Set(const std::string &key, const std::string &value)=0
void(Derived::* d_func)(double)