Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [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 NFD_COMMON_HPP |
| 8 | #define NFD_COMMON_HPP |
| 9 | |
Junxiao Shi | 61c5ef3 | 2014-01-24 20:59:30 -0700 | [diff] [blame] | 10 | #include "config.hpp" |
| 11 | |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 12 | #ifdef WITH_TESTS |
| 13 | #define VIRTUAL_WITH_TESTS virtual |
| 14 | #define PUBLIC_WITH_TESTS_ELSE_PROTECTED public |
| 15 | #define PUBLIC_WITH_TESTS_ELSE_PRIVATE public |
| 16 | #define PROTECTED_WITH_TESTS_ELSE_PRIVATE protected |
| 17 | #else |
| 18 | #define VIRTUAL_WITH_TESTS |
| 19 | #define PUBLIC_WITH_TESTS_ELSE_PROTECTED protected |
| 20 | #define PUBLIC_WITH_TESTS_ELSE_PRIVATE private |
| 21 | #define PROTECTED_WITH_TESTS_ELSE_PRIVATE private |
| 22 | #endif |
| 23 | |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 24 | #include <ndn-cpp-dev/interest.hpp> |
| 25 | #include <ndn-cpp-dev/data.hpp> |
| 26 | |
| 27 | #include <boost/utility.hpp> |
| 28 | #include <boost/shared_ptr.hpp> |
Alexander Afanasyev | d32cb96 | 2014-01-28 12:43:47 -0800 | [diff] [blame] | 29 | #include <boost/enable_shared_from_this.hpp> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 30 | #include <boost/function.hpp> |
| 31 | #include <boost/bind.hpp> |
Junxiao Shi | c1e1236 | 2014-01-24 20:03:26 -0700 | [diff] [blame] | 32 | #include <boost/ref.hpp> |
Alexander Afanasyev | 920af2f | 2014-01-25 22:56:11 -0800 | [diff] [blame] | 33 | #include <boost/asio.hpp> |
| 34 | #include <boost/assert.hpp> |
HYuan | a9b8575 | 2014-02-26 02:32:30 -0600 | [diff] [blame] | 35 | #include <boost/functional/hash.hpp> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 36 | |
| 37 | #include <vector> |
Junxiao Shi | c1e1236 | 2014-01-24 20:03:26 -0700 | [diff] [blame] | 38 | #include <list> |
Ilya Moiseenko | 76cf77a | 2014-03-05 14:35:51 -0800 | [diff] [blame] | 39 | #include <queue> |
Alexander Afanasyev | 920af2f | 2014-01-25 22:56:11 -0800 | [diff] [blame] | 40 | #include <set> |
Steve DiBenedetto | bb75b55 | 2014-02-08 12:12:11 -0700 | [diff] [blame] | 41 | #include <sstream> |
| 42 | #include <istream> |
| 43 | #include <fstream> |
Junxiao Shi | dbe7173 | 2014-02-21 22:23:28 -0700 | [diff] [blame] | 44 | #include <algorithm> |
| 45 | #include <numeric> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 46 | |
Ilya Moiseenko | a807e65 | 2014-01-28 11:51:01 -0800 | [diff] [blame] | 47 | #include "core/logger.hpp" |
| 48 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 49 | namespace nfd { |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 50 | |
| 51 | using boost::noncopyable; |
| 52 | using boost::shared_ptr; |
Alexander Afanasyev | d32cb96 | 2014-01-28 12:43:47 -0800 | [diff] [blame] | 53 | using boost::enable_shared_from_this; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 54 | using boost::make_shared; |
Junxiao Shi | e5e2fce | 2014-02-10 20:01:53 -0700 | [diff] [blame] | 55 | using boost::static_pointer_cast; |
Alexander Afanasyev | bd220a0 | 2014-02-20 00:29:56 -0800 | [diff] [blame] | 56 | using boost::dynamic_pointer_cast; |
Junxiao Shi | 0b5fbbb | 2014-02-20 15:54:03 -0700 | [diff] [blame] | 57 | using boost::weak_ptr; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 58 | using boost::function; |
| 59 | using boost::bind; |
| 60 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 61 | using ndn::Interest; |
| 62 | using ndn::Data; |
| 63 | using ndn::Name; |
| 64 | using ndn::Exclude; |
| 65 | using ndn::Block; |
| 66 | namespace tlv { |
| 67 | using namespace ndn::Tlv; |
| 68 | } |
| 69 | |
Alexander Afanasyev | eb3197f | 2014-03-17 19:28:18 -0700 | [diff] [blame^] | 70 | namespace time = ndn::time; |
| 71 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 72 | } // namespace nfd |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 73 | |
| 74 | #endif // NFD_COMMON_HPP |