blob: 40a48ce28c0b8e21c93d7b1a5af02e91e4251101 [file] [log] [blame]
Yingdi Yuc9843cf2014-08-04 17:52:19 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07003 * Copyright (c) 2014-2017, Regents of the University of California
Yingdi Yuc9843cf2014-08-04 17:52:19 -07004 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07005 * This file is part of NDN DeLorean, An Authentication System for Data Archives in
6 * Named Data Networking. See AUTHORS.md for complete list of NDN DeLorean authors
7 * and contributors.
Yingdi Yuc9843cf2014-08-04 17:52:19 -07008 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07009 * NDN DeLorean is free software: you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License as published by the Free Software
11 * Foundation, either version 3 of the License, or (at your option) any later
12 * version.
Yingdi Yuc9843cf2014-08-04 17:52:19 -070013 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070014 * NDN DeLorean is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
Yingdi Yuc9843cf2014-08-04 17:52:19 -070017 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070018 * You should have received a copy of the GNU General Public License along with NDN
19 * DeLorean, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Yingdi Yuc9843cf2014-08-04 17:52:19 -070020 */
21
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070022#ifndef NDN_DELOREAN_COMMON_HPP
23#define NDN_DELOREAN_COMMON_HPP
Yingdi Yuc9843cf2014-08-04 17:52:19 -070024
25#include "config.hpp"
26
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070027#ifdef NDN_DELOREAN_HAVE_TESTS
28#define NDN_DELOREAN_VIRTUAL_WITH_TESTS virtual
29#define NDN_DELOREAN_PUBLIC_WITH_TESTS_ELSE_PROTECTED public
30#define NDN_DELOREAN_PUBLIC_WITH_TESTS_ELSE_PRIVATE public
31#define NDN_DELOREAN_PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
Yingdi Yuc9843cf2014-08-04 17:52:19 -070032#else
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070033#define NDN_DELOREAN_VIRTUAL_WITH_TESTS
34#define NDN_DELOREAN_PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
35#define NDN_DELOREAN_PUBLIC_WITH_TESTS_ELSE_PRIVATE private
36#define NDN_DELOREAN_PROTECTED_WITH_TESTS_ELSE_PRIVATE private
Yingdi Yuc9843cf2014-08-04 17:52:19 -070037#endif
38
39#include <cstddef>
40#include <list>
41#include <set>
42#include <queue>
43#include <vector>
44
45#include <ndn-cxx/common.hpp>
46#include <ndn-cxx/interest.hpp>
47#include <ndn-cxx/data.hpp>
48
49#include <boost/algorithm/string.hpp>
50#include <boost/asio.hpp>
51#include <boost/assert.hpp>
52#include <boost/lexical_cast.hpp>
53#include <boost/noncopyable.hpp>
54#include <boost/property_tree/ptree.hpp>
55#include <boost/scoped_ptr.hpp>
56
Alexander Afanasyev49e2e4c2017-05-06 13:42:57 -070057namespace ndn {
58namespace delorean {
Yingdi Yuc9843cf2014-08-04 17:52:19 -070059
60using std::size_t;
61
62using boost::noncopyable;
63using boost::scoped_ptr;
64
Yingdi Yu0c3e5912015-03-17 14:22:38 -070065using std::shared_ptr;
66using std::weak_ptr;
67using std::enable_shared_from_this;
68using std::make_shared;
69using std::static_pointer_cast;
70using std::dynamic_pointer_cast;
71using std::const_pointer_cast;
72using std::function;
73using std::bind;
74using std::ref;
75using std::cref;
Yingdi Yuc9843cf2014-08-04 17:52:19 -070076
77using ndn::Interest;
78using ndn::Data;
79using ndn::Name;
80using ndn::Exclude;
81using ndn::Block;
Yingdi Yu0c3e5912015-03-17 14:22:38 -070082using ndn::Signature;
83using ndn::KeyLocator;
Yingdi Yuc9843cf2014-08-04 17:52:19 -070084
85namespace tlv {
Yingdi Yu0c3e5912015-03-17 14:22:38 -070086using namespace ndn::tlv;
Yingdi Yuc9843cf2014-08-04 17:52:19 -070087}
88
89namespace name = ndn::name;
90namespace time = ndn::time;
91
Alexander Afanasyev49e2e4c2017-05-06 13:42:57 -070092} // namespace delorean
93} // namespace ndn
Yingdi Yuc9843cf2014-08-04 17:52:19 -070094
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070095#endif // NDN_DELOREAN_COMMON_HPP