blob: ef2ce3d62fc7508e30bec588c47e0f9a7908d109 [file] [log] [blame]
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyev9bcbc7c2014-04-06 19:37:37 -07003 * 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 Afanasyevb927a3a2014-01-24 10:41:47 -080024
25#ifndef NFD_COMMON_HPP
26#define NFD_COMMON_HPP
27
Junxiao Shi61c5ef32014-01-24 20:59:30 -070028#include "config.hpp"
29
Junxiao Shi88884492014-02-15 15:57:43 -070030#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 Afanasyev8552a382014-05-15 20:13:42 -070042#include <list>
43#include <set>
44#include <vector>
45
Alexander Afanasyev4a771362014-04-24 21:29:33 -070046#include <ndn-cxx/common.hpp>
47#include <ndn-cxx/interest.hpp>
48#include <ndn-cxx/data.hpp>
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080049
Alexander Afanasyev8552a382014-05-15 20:13:42 -070050#include <boost/algorithm/string.hpp>
51#include <boost/asio.hpp>
Alexander Afanasyev920af2f2014-01-25 22:56:11 -080052#include <boost/assert.hpp>
Steve DiBenedettobf6a93d2014-03-21 14:03:02 -060053#include <boost/lexical_cast.hpp>
Davide Pesavento52a18f92014-04-10 00:55:01 +020054#include <boost/noncopyable.hpp>
Alexander Afanasyev8552a382014-05-15 20:13:42 -070055#include <boost/property_tree/ptree.hpp>
Davide Pesavento52a18f92014-04-10 00:55:01 +020056#include <boost/scoped_ptr.hpp>
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080057
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080058namespace nfd {
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080059
60using boost::noncopyable;
Davide Pesavento52a18f92014-04-10 00:55:01 +020061using boost::scoped_ptr;
62
63using ndn::shared_ptr;
64using ndn::weak_ptr;
65using ndn::enable_shared_from_this;
66using ndn::make_shared;
67using ndn::static_pointer_cast;
68using ndn::dynamic_pointer_cast;
69using ndn::const_pointer_cast;
70using ndn::function;
71using ndn::bind;
Alexander Afanasyevf6980282014-05-13 18:28:40 -070072using ndn::ref;
73using ndn::cref;
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080074
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080075using ndn::Interest;
76using ndn::Data;
77using ndn::Name;
78using ndn::Exclude;
79using ndn::Block;
Davide Pesavento52a18f92014-04-10 00:55:01 +020080
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080081namespace tlv {
82using namespace ndn::Tlv;
83}
84
Davide Pesavento52a18f92014-04-10 00:55:01 +020085namespace name = ndn::name;
Alexander Afanasyeveb3197f2014-03-17 19:28:18 -070086namespace time = ndn::time;
87
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080088} // namespace nfd
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080089
90#endif // NFD_COMMON_HPP