blob: 8e8c1db2b56e41dfd306981b31822eaddf2a4ea7 [file] [log] [blame]
Junxiao Shif7191242015-03-19 05:53:41 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesavento60f8cc12018-05-10 22:05:21 -04002/*
3 * Copyright (c) 2014-2018, Regents of the University of California,
Junxiao Shif7191242015-03-19 05:53:41 -07004 * 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 * The University of Memphis.
10 *
Junxiao Shi1688ded2015-03-29 10:09:26 -070011 * This file is part of ndn-tools (Named Data Networking Essential Tools).
Junxiao Shif7191242015-03-19 05:53:41 -070012 * See AUTHORS.md for complete list of ndn-tools authors and contributors.
13 *
14 * ndn-tools is free software: you can redistribute it and/or modify it under the terms
15 * of the GNU General Public License as published by the Free Software Foundation,
16 * either version 3 of the License, or (at your option) any later version.
17 *
18 * ndn-tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
19 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20 * PURPOSE. See the GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License along with
23 * ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26#ifndef NDN_TOOLS_CORE_COMMON_HPP
27#define NDN_TOOLS_CORE_COMMON_HPP
28
Junxiao Shi2713a3b2015-06-22 16:19:05 -070029#ifdef WITH_TESTS
30#define VIRTUAL_WITH_TESTS virtual
31#define PUBLIC_WITH_TESTS_ELSE_PROTECTED public
32#define PUBLIC_WITH_TESTS_ELSE_PRIVATE public
33#define PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
34#else
35#define VIRTUAL_WITH_TESTS
36#define PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
37#define PUBLIC_WITH_TESTS_ELSE_PRIVATE private
38#define PROTECTED_WITH_TESTS_ELSE_PRIVATE private
39#endif
40
Junxiao Shif7191242015-03-19 05:53:41 -070041#include <cstddef>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040042#include <cstdint>
43#include <functional>
Junxiao Shif7191242015-03-19 05:53:41 -070044#include <iostream>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040045#include <limits>
Junxiao Shif7191242015-03-19 05:53:41 -070046#include <map>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040047#include <memory>
Davide Pesaventoc0702702017-08-24 22:04:00 -040048#include <stdexcept>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040049#include <string>
Davide Pesaventoc0702702017-08-24 22:04:00 -040050#include <utility>
Junxiao Shif7191242015-03-19 05:53:41 -070051#include <vector>
52
53#include <boost/asio.hpp>
54#include <boost/assert.hpp>
55#include <boost/lexical_cast.hpp>
56#include <boost/noncopyable.hpp>
57#include <boost/program_options/options_description.hpp>
58#include <boost/program_options/variables_map.hpp>
59#include <boost/program_options/parsers.hpp>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040060#include <boost/throw_exception.hpp>
Junxiao Shif7191242015-03-19 05:53:41 -070061
62#include <ndn-cxx/data.hpp>
63#include <ndn-cxx/face.hpp>
64#include <ndn-cxx/interest.hpp>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040065#include <ndn-cxx/name.hpp>
Junxiao Shif7191242015-03-19 05:53:41 -070066#include <ndn-cxx/security/key-chain.hpp>
Andrea Tosatto672b9a72016-01-05 16:18:20 +010067#include <ndn-cxx/util/backports.hpp>
Eric Newberry4164b8e2015-04-23 17:29:18 -070068#include <ndn-cxx/util/scheduler.hpp>
Alexander Afanasyev1e7a7b22015-08-26 15:35:26 -070069#include <ndn-cxx/util/scheduler-scoped-event-id.hpp>
Eric Newberry4164b8e2015-04-23 17:29:18 -070070#include <ndn-cxx/util/signal.hpp>
Davide Pesavento60f8cc12018-05-10 22:05:21 -040071#include <ndn-cxx/util/time.hpp>
Junxiao Shif7191242015-03-19 05:53:41 -070072
73namespace ndn {
74
Davide Pesavento60f8cc12018-05-10 22:05:21 -040075using std::shared_ptr;
76using std::unique_ptr;
77using std::make_shared;
78using std::make_unique;
79
Junxiao Shif7191242015-03-19 05:53:41 -070080using std::size_t;
81
82using boost::noncopyable;
83
Eric Newberry4164b8e2015-04-23 17:29:18 -070084namespace signal = util::signal;
85namespace scheduler = util::scheduler;
86
Junxiao Shi1753afb2015-04-17 20:59:50 -070087} // namespace ndn
Junxiao Shif7191242015-03-19 05:53:41 -070088
89#endif // NDN_TOOLS_CORE_COMMON_HPP