blob: 22e5de4a8fa3d79d7a9b73b3aeaa27402704c844 [file] [log] [blame]
Yingdi Yu0b0a7362014-08-05 16:31:30 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * COPYRIGHT MSG GOES HERE...
4 */
5
6#ifndef CHRONOS_COMMON_HPP
7#define CHRONOS_COMMON_HPP
8
9#include "config.h"
10
11#ifdef WITH_TESTS
12#define VIRTUAL_WITH_TESTS virtual
13#define PUBLIC_WITH_TESTS_ELSE_PROTECTED public
14#define PUBLIC_WITH_TESTS_ELSE_PRIVATE public
15#define PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
16#else
17#define VIRTUAL_WITH_TESTS
18#define PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
19#define PUBLIC_WITH_TESTS_ELSE_PRIVATE private
20#define PROTECTED_WITH_TESTS_ELSE_PRIVATE private
21#endif
22
23#include <cstddef>
24#include <list>
25#include <set>
26#include <map>
27#include <queue>
28#include <vector>
29#include <string>
30
31#include <ndn-cxx/common.hpp>
32#include <ndn-cxx/interest.hpp>
33#include <ndn-cxx/data.hpp>
34
35#include <boost/algorithm/string.hpp>
36#include <boost/asio.hpp>
37#include <boost/assert.hpp>
38#include <boost/lexical_cast.hpp>
39#include <boost/noncopyable.hpp>
40#include <boost/property_tree/ptree.hpp>
41
42namespace chronos {
43
44using std::size_t;
45
46using boost::noncopyable;
47
48using ndn::shared_ptr;
49using ndn::weak_ptr;
50using ndn::enable_shared_from_this;
51using ndn::make_shared;
52using ndn::static_pointer_cast;
53using ndn::dynamic_pointer_cast;
54using ndn::const_pointer_cast;
55using ndn::function;
56using ndn::bind;
57using ndn::ref;
58using ndn::cref;
59
60using ndn::Interest;
61using ndn::Data;
62using ndn::Name;
63using ndn::Exclude;
64using ndn::Block;
65using ndn::Signature;
66using ndn::KeyLocator;
67
68namespace tlv {
69using namespace ndn::Tlv;
70}
71
72namespace name = ndn::name;
73namespace time = ndn::time;
74
75} // namespace chronos
76
77#endif // CHRONOS_COMMON_HPP