Yingdi Yu | 48e8c0c | 2014-03-19 12:01:55 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 3 | * Copyright (c) 2013-2014, Regents of the University of California. |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 7 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 8 | * |
| 9 | * This file licensed under New BSD License. See COPYING for detailed information about |
| 10 | * ndn-cxx library copyright, permissions, and redistribution restrictions. |
| 11 | * |
| 12 | * @author Yingdi Yu <http://irl.cs.ucla.edu/~yingdi/> |
Yingdi Yu | 48e8c0c | 2014-03-19 12:01:55 -0700 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef NDN_SECURITY_CONF_COMMON_HPP |
| 16 | #define NDN_SECURITY_CONF_COMMON_HPP |
| 17 | |
| 18 | #include <string> |
| 19 | #include <boost/property_tree/ptree.hpp> |
| 20 | |
| 21 | namespace ndn { |
| 22 | namespace security { |
| 23 | namespace conf { |
| 24 | |
| 25 | typedef boost::property_tree::ptree ConfigSection; |
| 26 | |
| 27 | class Error : public std::runtime_error |
| 28 | { |
| 29 | public: |
| 30 | explicit |
| 31 | Error(const std::string& what) |
| 32 | : std::runtime_error(what) |
| 33 | { |
| 34 | } |
| 35 | }; |
| 36 | |
| 37 | } // namespace conf |
| 38 | } // namespace security |
| 39 | } // namespace ndn |
| 40 | |
| 41 | #endif // NDN_SECURITY_CONF_COMMON_HPP |