7 #ifndef NDN_MANAGEMENT_CONFIG_FILE_HPP
8 #define NDN_MANAGEMENT_CONFIG_FILE_HPP
10 #include "../common.hpp"
12 #include <boost/property_tree/ptree.hpp>
13 #include <boost/filesystem.hpp>
21 class Error :
public std::runtime_error
25 : std::runtime_error(what)
31 typedef boost::property_tree::ptree
Parsed;
42 const boost::filesystem::path&
78 boost::filesystem::path
82 boost::filesystem::path m_path;
83 std::ifstream m_input;
87 inline const boost::filesystem::path&
102 #endif // NDN_MANAGEMENT_CONFIG_FILE_HPP
const Parsed & getParsedConfiguration() const
boost::property_tree::ptree Parsed
const boost::filesystem::path & getPath() const
ConfigFile()
Locate, open, and parse a library configuration file.
Error(const std::string &what)