26 #ifndef NFD_CORE_COMMON_HPP
27 #define NFD_CORE_COMMON_HPP
29 #include "core/config.hpp"
32 #define NFD_VIRTUAL_WITH_TESTS virtual
33 #define NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED public
34 #define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE public
35 #define NFD_PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
36 #define NFD_OVERRIDE_WITH_TESTS_ELSE_FINAL override
37 #define NFD_FINAL_UNLESS_WITH_TESTS
39 #define NFD_VIRTUAL_WITH_TESTS
40 #define NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
41 #define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE private
42 #define NFD_PROTECTED_WITH_TESTS_ELSE_PRIVATE private
43 #define NFD_OVERRIDE_WITH_TESTS_ELSE_FINAL final
44 #define NFD_FINAL_UNLESS_WITH_TESTS final
56 #include <unordered_map>
57 #include <unordered_set>
61 #include <ndn-cxx/data.hpp>
62 #include <ndn-cxx/interest.hpp>
63 #include <ndn-cxx/name.hpp>
64 #include <ndn-cxx/encoding/block.hpp>
65 #include <ndn-cxx/lp/nack.hpp>
66 #include <ndn-cxx/net/face-uri.hpp>
67 #include <ndn-cxx/util/backports.hpp>
68 #include <ndn-cxx/util/exception.hpp>
69 #include <ndn-cxx/util/optional.hpp>
70 #include <ndn-cxx/util/scheduler.hpp>
71 #include <ndn-cxx/util/signal.hpp>
72 #include <ndn-cxx/util/span.hpp>
73 #include <ndn-cxx/util/time.hpp>
75 #include <boost/asio.hpp>
76 #include <boost/assert.hpp>
77 #include <boost/core/noncopyable.hpp>
78 #include <boost/lexical_cast.hpp>
79 #include <boost/property_tree/ptree.hpp>
85 using boost::noncopyable;
87 using std::shared_ptr;
88 using std::unique_ptr;
90 using std::make_shared;
91 using std::make_unique;
93 using std::static_pointer_cast;
94 using std::dynamic_pointer_cast;
95 using std::const_pointer_cast;
97 using namespace std::string_literals;
102 using ndn::to_string;
109 using ndn::PartialName;
110 using ndn::Scheduler;
115 using namespace ndn::tlv;
118 namespace lp = ndn::lp;
119 namespace name = ndn::name;
120 namespace scheduler = ndn::scheduler;
121 namespace signal = ndn::util::signal;
122 namespace time = ndn::time;
123 using namespace ndn::time_literals;
124 using ndn::operator
""_block;
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...