Obaid | 793401d | 2014-02-27 19:13:49 -0600 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NRD_COMMON_HPP |
| 8 | #define NRD_COMMON_HPP |
| 9 | |
| 10 | #include <iostream> |
| 11 | #include <list> |
| 12 | |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 13 | #include <ndn-cpp-dev/face.hpp> |
| 14 | #include <ndn-cpp-dev/security/key-chain.hpp> |
Yingdi Yu | defb5e4 | 2014-03-31 18:18:09 -0700 | [diff] [blame] | 15 | #include <ndn-cpp-dev/security/validator-config.hpp> |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 16 | #include <ndn-cpp-dev/util/scheduler.hpp> |
| 17 | |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 18 | #include <ndn-cpp-dev/management/nfd-controller.hpp> |
| 19 | #include <ndn-cpp-dev/management/nfd-control-response.hpp> |
Obaid | 793401d | 2014-02-27 19:13:49 -0600 | [diff] [blame] | 20 | #include <ndn-cpp-dev/management/nrd-prefix-reg-options.hpp> |
| 21 | |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 22 | #include <boost/lexical_cast.hpp> |
| 23 | #include <boost/algorithm/string.hpp> |
| 24 | #include <boost/algorithm/string/regex_find_format.hpp> |
Obaid | 5748c0c | 2014-04-09 18:00:42 -0500 | [diff] [blame] | 25 | #include <boost/property_tree/ptree.hpp> |
| 26 | #include <boost/property_tree/info_parser.hpp> |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 27 | |
Obaid | 5748c0c | 2014-04-09 18:00:42 -0500 | [diff] [blame] | 28 | #include "../build/src/config.hpp" |
| 29 | |
| 30 | namespace ndn { |
| 31 | namespace nrd { |
| 32 | |
| 33 | class Error : public std::runtime_error |
| 34 | { |
| 35 | public: |
| 36 | explicit |
| 37 | Error(const std::string& what) |
| 38 | : std::runtime_error(what) |
| 39 | { |
| 40 | } |
| 41 | }; |
| 42 | |
| 43 | } //namespace nrd |
| 44 | } //namespace ndn |
Obaid | 793401d | 2014-02-27 19:13:49 -0600 | [diff] [blame] | 45 | #endif // NRD_COMMON_HPP |