blob: 9b427b657f1fffd0a8f6dfea81c13c90538eadb8 [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
Yingdi Yu6a614442014-10-31 17:42:43 -070012#define CHRONOCHAT_VIRTUAL_WITH_TESTS virtual
13#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PROTECTED public
14#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PRIVATE public
15#define CHRONOCHAT_PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
Yingdi Yu0b0a7362014-08-05 16:31:30 -070016#else
Yingdi Yu6a614442014-10-31 17:42:43 -070017#define CHRONOCHAT_VIRTUAL_WITH_TESTS
18#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
19#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PRIVATE private
20#define CHRONOCHAT_PROTECTED_WITH_TESTS_ELSE_PRIVATE private
Yingdi Yu0b0a7362014-08-05 16:31:30 -070021#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 {
Yingdi Yu6a614442014-10-31 17:42:43 -070069using namespace ndn::tlv;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070070}
71
72namespace name = ndn::name;
73namespace time = ndn::time;
74
75} // namespace chronos
76
77#endif // CHRONOS_COMMON_HPP