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 | 8552a38 | 2014-05-15 20:13:42 -0700 | [diff] [blame] | 42 | #include <list> |
| 43 | #include <set> |
Junxiao Shi | 651b75e | 2014-07-17 20:15:09 -0700 | [diff] [blame] | 44 | #include <queue> |
Alexander Afanasyev | 8552a38 | 2014-05-15 20:13:42 -0700 | [diff] [blame] | 45 | #include <vector> |
| 46 | |
Alexander Afanasyev | 4a77136 | 2014-04-24 21:29:33 -0700 | [diff] [blame] | 47 | #include <ndn-cxx/common.hpp> |
| 48 | #include <ndn-cxx/interest.hpp> |
| 49 | #include <ndn-cxx/data.hpp> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 50 | |
Alexander Afanasyev | 8552a38 | 2014-05-15 20:13:42 -0700 | [diff] [blame] | 51 | #include <boost/algorithm/string.hpp> |
| 52 | #include <boost/asio.hpp> |
Alexander Afanasyev | 920af2f | 2014-01-25 22:56:11 -0800 | [diff] [blame] | 53 | #include <boost/assert.hpp> |
Steve DiBenedetto | bf6a93d | 2014-03-21 14:03:02 -0600 | [diff] [blame] | 54 | #include <boost/lexical_cast.hpp> |
Davide Pesavento | 52a18f9 | 2014-04-10 00:55:01 +0200 | [diff] [blame] | 55 | #include <boost/noncopyable.hpp> |
Alexander Afanasyev | 8552a38 | 2014-05-15 20:13:42 -0700 | [diff] [blame] | 56 | #include <boost/property_tree/ptree.hpp> |
Davide Pesavento | 52a18f9 | 2014-04-10 00:55:01 +0200 | [diff] [blame] | 57 | #include <boost/scoped_ptr.hpp> |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 58 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 59 | namespace nfd { |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 60 | |
| 61 | using boost::noncopyable; |
Davide Pesavento | 52a18f9 | 2014-04-10 00:55:01 +0200 | [diff] [blame] | 62 | using boost::scoped_ptr; |
| 63 | |
| 64 | using ndn::shared_ptr; |
| 65 | using ndn::weak_ptr; |
| 66 | using ndn::enable_shared_from_this; |
| 67 | using ndn::make_shared; |
| 68 | using ndn::static_pointer_cast; |
| 69 | using ndn::dynamic_pointer_cast; |
| 70 | using ndn::const_pointer_cast; |
| 71 | using ndn::function; |
| 72 | using ndn::bind; |
Alexander Afanasyev | f698028 | 2014-05-13 18:28:40 -0700 | [diff] [blame] | 73 | using ndn::ref; |
| 74 | using ndn::cref; |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 75 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 76 | using ndn::Interest; |
| 77 | using ndn::Data; |
| 78 | using ndn::Name; |
| 79 | using ndn::Exclude; |
| 80 | using ndn::Block; |
Davide Pesavento | 52a18f9 | 2014-04-10 00:55:01 +0200 | [diff] [blame] | 81 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 82 | namespace tlv { |
| 83 | using namespace ndn::Tlv; |
| 84 | } |
| 85 | |
Davide Pesavento | 52a18f9 | 2014-04-10 00:55:01 +0200 | [diff] [blame] | 86 | namespace name = ndn::name; |
Alexander Afanasyev | eb3197f | 2014-03-17 19:28:18 -0700 | [diff] [blame] | 87 | namespace time = ndn::time; |
| 88 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 89 | } // namespace nfd |
Alexander Afanasyev | b927a3a | 2014-01-24 10:41:47 -0800 | [diff] [blame] | 90 | |
| 91 | #endif // NFD_COMMON_HPP |