Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Alexander Afanasyev | 9bcbc7c | 2014-04-06 19:37:37 -0700 | [diff] [blame^] | 3 | * Copyright (c) 2014 Regents of the University of California, |
| 4 | * Arizona Board of Regents, |
| 5 | * Colorado State University, |
| 6 | * University Pierre & Marie Curie, Sorbonne University, |
| 7 | * Washington University in St. Louis, |
| 8 | * Beijing Institute of Technology |
| 9 | * |
| 10 | * This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 11 | * See AUTHORS.md for complete list of NFD authors and contributors. |
| 12 | * |
| 13 | * NFD is free software: you can redistribute it and/or modify it under the terms |
| 14 | * of the GNU General Public License as published by the Free Software Foundation, |
| 15 | * either version 3 of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 18 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 19 | * PURPOSE. See the GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License along with |
| 22 | * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 23 | **/ |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 24 | |
| 25 | #ifndef NFD_COMMON_HPP |
| 26 | #define NFD_COMMON_HPP |
| 27 | |
Junxiao Shi | 61c5ef3 | 2014-01-24 20:59:30 -0700 | [diff] [blame] | 28 | #include "config.hpp" |
| 29 | |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame] | 30 | #ifdef WITH_TESTS |
| 31 | #define VIRTUAL_WITH_TESTS virtual |
| 32 | #define PUBLIC_WITH_TESTS_ELSE_PROTECTED public |
| 33 | #define PUBLIC_WITH_TESTS_ELSE_PRIVATE public |
| 34 | #define PROTECTED_WITH_TESTS_ELSE_PRIVATE protected |
| 35 | #else |
| 36 | #define VIRTUAL_WITH_TESTS |
| 37 | #define PUBLIC_WITH_TESTS_ELSE_PROTECTED protected |
| 38 | #define PUBLIC_WITH_TESTS_ELSE_PRIVATE private |
| 39 | #define PROTECTED_WITH_TESTS_ELSE_PRIVATE private |
| 40 | #endif |
| 41 | |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 42 | #include <ndn-cpp-dev/interest.hpp> |
| 43 | #include <ndn-cpp-dev/data.hpp> |
| 44 | |
| 45 | #include <boost/utility.hpp> |
| 46 | #include <boost/shared_ptr.hpp> |
Alexander Afanasyev | d32cb96 | 2014-01-28 12:43:47 -0800 | [diff] [blame] | 47 | #include <boost/enable_shared_from_this.hpp> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 48 | #include <boost/function.hpp> |
| 49 | #include <boost/bind.hpp> |
Junxiao Shi | c1e1236 | 2014-01-24 20:03:26 -0700 | [diff] [blame] | 50 | #include <boost/ref.hpp> |
Alexander Afanasyev | 920af2f | 2014-01-25 22:56:11 -0800 | [diff] [blame] | 51 | #include <boost/asio.hpp> |
| 52 | #include <boost/assert.hpp> |
HYuan | a9b8575 | 2014-02-26 02:32:30 -0600 | [diff] [blame] | 53 | #include <boost/functional/hash.hpp> |
Steve DiBenedetto | bf6a93d | 2014-03-21 14:03:02 -0600 | [diff] [blame] | 54 | #include <boost/algorithm/string.hpp> |
| 55 | #include <boost/lexical_cast.hpp> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 56 | |
| 57 | #include <vector> |
Junxiao Shi | c1e1236 | 2014-01-24 20:03:26 -0700 | [diff] [blame] | 58 | #include <list> |
Ilya Moiseenko | 76cf77a | 2014-03-05 14:35:51 -0800 | [diff] [blame] | 59 | #include <queue> |
Alexander Afanasyev | 920af2f | 2014-01-25 22:56:11 -0800 | [diff] [blame] | 60 | #include <set> |
Steve DiBenedetto | bb75b55 | 2014-02-08 12:12:11 -0700 | [diff] [blame] | 61 | #include <sstream> |
| 62 | #include <istream> |
| 63 | #include <fstream> |
Junxiao Shi | dbe7173 | 2014-02-21 22:23:28 -0700 | [diff] [blame] | 64 | #include <algorithm> |
| 65 | #include <numeric> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 66 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 67 | namespace nfd { |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 68 | |
| 69 | using boost::noncopyable; |
| 70 | using boost::shared_ptr; |
Alexander Afanasyev | d32cb96 | 2014-01-28 12:43:47 -0800 | [diff] [blame] | 71 | using boost::enable_shared_from_this; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 72 | using boost::make_shared; |
Junxiao Shi | e5e2fce | 2014-02-10 20:01:53 -0700 | [diff] [blame] | 73 | using boost::static_pointer_cast; |
Alexander Afanasyev | bd220a0 | 2014-02-20 00:29:56 -0800 | [diff] [blame] | 74 | using boost::dynamic_pointer_cast; |
Junxiao Shi | 0b5fbbb | 2014-02-20 15:54:03 -0700 | [diff] [blame] | 75 | using boost::weak_ptr; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 76 | using boost::function; |
| 77 | using boost::bind; |
| 78 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 79 | using ndn::Interest; |
| 80 | using ndn::Data; |
| 81 | using ndn::Name; |
| 82 | using ndn::Exclude; |
| 83 | using ndn::Block; |
| 84 | namespace tlv { |
| 85 | using namespace ndn::Tlv; |
| 86 | } |
| 87 | |
Alexander Afanasyev | eb3197f | 2014-03-17 19:28:18 -0700 | [diff] [blame] | 88 | namespace time = ndn::time; |
| 89 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 90 | } // namespace nfd |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 91 | |
| 92 | #endif // NFD_COMMON_HPP |