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
57 #include <string_view>
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/scheduler.hpp>
70 #include <ndn-cxx/util/signal.hpp>
71 #include <ndn-cxx/util/span.hpp>
72 #include <ndn-cxx/util/time.hpp>
74 #include <boost/assert.hpp>
75 #include <boost/core/noncopyable.hpp>
81 using boost::noncopyable;
83 using std::shared_ptr;
84 using std::unique_ptr;
86 using std::make_shared;
87 using std::make_unique;
89 using std::static_pointer_cast;
90 using std::dynamic_pointer_cast;
91 using std::const_pointer_cast;
93 using namespace std::string_literals;
94 using namespace std::string_view_literals;
104 using ndn::PartialName;
105 using ndn::Scheduler;
110 using namespace ndn::tlv;
113 namespace lp = ndn::lp;
114 namespace name = ndn::name;
115 namespace scheduler = ndn::scheduler;
116 namespace signal = ndn::util::signal;
117 namespace time = ndn::time;
118 using namespace ndn::time_literals;
119 using ndn::operator
""_block;