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> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 35 | |
| 36 | #include <vector> |
Junxiao Shi | c1e1236 | 2014-01-24 20:03:26 -0700 | [diff] [blame] | 37 | #include <list> |
Alexander Afanasyev | 920af2f | 2014-01-25 22:56:11 -0800 | [diff] [blame] | 38 | #include <set> |
Steve DiBenedetto | bb75b55 | 2014-02-08 12:12:11 -0700 | [diff] [blame] | 39 | #include <sstream> |
| 40 | #include <istream> |
| 41 | #include <fstream> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 42 | |
Ilya Moiseenko | a807e65 | 2014-01-28 11:51:01 -0800 | [diff] [blame] | 43 | #include "core/logger.hpp" |
| 44 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 45 | namespace nfd { |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 46 | |
| 47 | using boost::noncopyable; |
| 48 | using boost::shared_ptr; |
Alexander Afanasyev | d32cb96 | 2014-01-28 12:43:47 -0800 | [diff] [blame] | 49 | using boost::enable_shared_from_this; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 50 | using boost::make_shared; |
Junxiao Shi | e5e2fce | 2014-02-10 20:01:53 -0700 | [diff] [blame] | 51 | using boost::static_pointer_cast; |
Alexander Afanasyev | bd220a0 | 2014-02-20 00:29:56 -0800 | [diff] [blame] | 52 | using boost::dynamic_pointer_cast; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 53 | using boost::function; |
| 54 | using boost::bind; |
| 55 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 56 | using ndn::Interest; |
| 57 | using ndn::Data; |
| 58 | using ndn::Name; |
| 59 | using ndn::Exclude; |
| 60 | using ndn::Block; |
| 61 | namespace tlv { |
| 62 | using namespace ndn::Tlv; |
| 63 | } |
| 64 | |
| 65 | } // namespace nfd |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 66 | |
| 67 | #endif // NFD_COMMON_HPP |