24 #include <boost/property_tree/ptree.hpp>
29 const std::string &config_for)
38 using namespace Colorize;
41 return tree_.get<T>(node_name);
43 catch (
const boost::property_tree::ptree_bad_path &)
47 std::throw_with_nested(e);
49 catch (
const boost::property_tree::ptree_bad_data &)
53 std::throw_with_nested(e);
60 return tree_.get<T>(node_name, default_value);
65 template std::string PropertyTreeExtractor::get<std::string>(
const std::string &);
66 template int PropertyTreeExtractor::get<int>(
const std::string &);
67 template uint64_t PropertyTreeExtractor::get<uint64_t>(
const std::string &);
71 template std::string PropertyTreeExtractor::get<std::string>(
const std::string &,
73 template int PropertyTreeExtractor::get<int>(
const std::string &,
const int &);
74 template uint64_t PropertyTreeExtractor::get<uint64_t>(
const std::string &,