blob: f52082856d548be3c33000f0047aefed3ffe6202 [file] [log] [blame]
Obaid793401d2014-02-27 19:13:49 -06001/* -*- 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
Obaid3f48fe52014-02-27 21:45:23 -060013#include <ndn-cpp-dev/face.hpp>
14#include <ndn-cpp-dev/security/key-chain.hpp>
Yingdi Yudefb5e42014-03-31 18:18:09 -070015#include <ndn-cpp-dev/security/validator-config.hpp>
Obaid3f48fe52014-02-27 21:45:23 -060016#include <ndn-cpp-dev/util/scheduler.hpp>
17
Obaid3f48fe52014-02-27 21:45:23 -060018#include <ndn-cpp-dev/management/nfd-controller.hpp>
19#include <ndn-cpp-dev/management/nfd-control-response.hpp>
Obaid793401d2014-02-27 19:13:49 -060020#include <ndn-cpp-dev/management/nrd-prefix-reg-options.hpp>
21
Obaid3f48fe52014-02-27 21:45:23 -060022#include <boost/lexical_cast.hpp>
23#include <boost/algorithm/string.hpp>
24#include <boost/algorithm/string/regex_find_format.hpp>
Obaid5748c0c2014-04-09 18:00:42 -050025#include <boost/property_tree/ptree.hpp>
26#include <boost/property_tree/info_parser.hpp>
Obaid3f48fe52014-02-27 21:45:23 -060027
Obaid5748c0c2014-04-09 18:00:42 -050028#include "../build/src/config.hpp"
29
30namespace ndn {
31namespace nrd {
32
33class Error : public std::runtime_error
34{
35public:
36 explicit
37 Error(const std::string& what)
38 : std::runtime_error(what)
39 {
40 }
41};
42
43} //namespace nrd
44} //namespace ndn
Obaid793401d2014-02-27 19:13:49 -060045#endif // NRD_COMMON_HPP