#ifndef PNDCONFIGPARAMETERS_H_ #define PNDCONFIGPARAMETERS_H_ #include #include #ifndef __CINT__ #include "boost/property_tree/ptree.hpp" #endif /* __CINT __ */ class PndConfigParameters { // usually we would just have the ptree here // unfortunately root cint is not capable to parse the ptree header // so this simpler option map was "developed"... std::map config_parameters; public: PndConfigParameters(); virtual ~PndConfigParameters(); #ifndef __CINT__ void insertParameters(const std::string &name_base, const boost::property_tree::ptree &config_parameters_); void setParameters( const boost::property_tree::ptree &config_parameters_); boost::property_tree::ptree getConfigParametersPropertyTree() const; #endif /* __CINT __ */ template T getParameterValueByName( const std::string ¶m_name) const; }; #endif /* PNDCONFIGPARAMETERS_H_ */