Yingdi Yu | 48e8c0c | 2014-03-19 12:01:55 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2013 Regents of the University of California. |
| 4 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 5 | * See COPYING for copyright and distribution information. |
| 6 | */ |
| 7 | |
| 8 | #ifndef NDN_SECURITY_CONF_COMMON_HPP |
| 9 | #define NDN_SECURITY_CONF_COMMON_HPP |
| 10 | |
| 11 | #include <string> |
| 12 | #include <boost/property_tree/ptree.hpp> |
| 13 | |
| 14 | namespace ndn { |
| 15 | namespace security { |
| 16 | namespace conf { |
| 17 | |
| 18 | typedef boost::property_tree::ptree ConfigSection; |
| 19 | |
| 20 | class Error : public std::runtime_error |
| 21 | { |
| 22 | public: |
| 23 | explicit |
| 24 | Error(const std::string& what) |
| 25 | : std::runtime_error(what) |
| 26 | { |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | } // namespace conf |
| 31 | } // namespace security |
| 32 | } // namespace ndn |
| 33 | |
| 34 | #endif // NDN_SECURITY_CONF_COMMON_HPP |