Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 3 | * Copyright (c) 2014-2017, Regents of the University of California |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 4 | * |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 5 | * 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 Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 8 | * |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 9 | * 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 Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 13 | * |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 14 | * 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 Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 17 | * |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 18 | * 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 Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 20 | */ |
| 21 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 22 | #ifndef NDN_DELOREAN_COMMON_HPP |
| 23 | #define NDN_DELOREAN_COMMON_HPP |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 24 | |
| 25 | #include "config.hpp" |
| 26 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 27 | #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 Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 32 | #else |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 33 | #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 Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 37 | #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 Afanasyev | 49e2e4c | 2017-05-06 13:42:57 -0700 | [diff] [blame^] | 57 | namespace ndn { |
| 58 | namespace delorean { |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 59 | |
| 60 | using std::size_t; |
| 61 | |
| 62 | using boost::noncopyable; |
| 63 | using boost::scoped_ptr; |
| 64 | |
Yingdi Yu | 0c3e591 | 2015-03-17 14:22:38 -0700 | [diff] [blame] | 65 | using std::shared_ptr; |
| 66 | using std::weak_ptr; |
| 67 | using std::enable_shared_from_this; |
| 68 | using std::make_shared; |
| 69 | using std::static_pointer_cast; |
| 70 | using std::dynamic_pointer_cast; |
| 71 | using std::const_pointer_cast; |
| 72 | using std::function; |
| 73 | using std::bind; |
| 74 | using std::ref; |
| 75 | using std::cref; |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 76 | |
| 77 | using ndn::Interest; |
| 78 | using ndn::Data; |
| 79 | using ndn::Name; |
| 80 | using ndn::Exclude; |
| 81 | using ndn::Block; |
Yingdi Yu | 0c3e591 | 2015-03-17 14:22:38 -0700 | [diff] [blame] | 82 | using ndn::Signature; |
| 83 | using ndn::KeyLocator; |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 84 | |
| 85 | namespace tlv { |
Yingdi Yu | 0c3e591 | 2015-03-17 14:22:38 -0700 | [diff] [blame] | 86 | using namespace ndn::tlv; |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | namespace name = ndn::name; |
| 90 | namespace time = ndn::time; |
| 91 | |
Alexander Afanasyev | 49e2e4c | 2017-05-06 13:42:57 -0700 | [diff] [blame^] | 92 | } // namespace delorean |
| 93 | } // namespace ndn |
Yingdi Yu | c9843cf | 2014-08-04 17:52:19 -0700 | [diff] [blame] | 94 | |
Alexander Afanasyev | be998ac | 2017-05-06 13:11:42 -0700 | [diff] [blame] | 95 | #endif // NDN_DELOREAN_COMMON_HPP |