blob: c8461df1d6f68ab42db6a447106bc8c1b0b89df4 [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
Yingdi Yueb692ac2015-02-10 18:46:18 -08006#ifndef CHRONOCHAT_COMMON_HPP
7#define CHRONOCHAT_COMMON_HPP
Yingdi Yu0b0a7362014-08-05 16:31:30 -07008
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
Yingdi Yueb692ac2015-02-10 18:46:18 -080042namespace chronochat {
Yingdi Yu0b0a7362014-08-05 16:31:30 -070043
44using std::size_t;
45
46using boost::noncopyable;
47
Yingdi Yu4647f022015-02-01 00:26:38 -080048using std::shared_ptr;
49using std::unique_ptr;
50using std::weak_ptr;
51using std::enable_shared_from_this;
52using std::make_shared;
53using std::static_pointer_cast;
54using std::dynamic_pointer_cast;
55using std::const_pointer_cast;
56using std::function;
57using std::bind;
58using std::ref;
59using std::cref;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070060
61using ndn::Interest;
62using ndn::Data;
63using ndn::Name;
64using ndn::Exclude;
65using ndn::Block;
66using ndn::Signature;
67using ndn::KeyLocator;
68
69namespace tlv {
Yingdi Yu6a614442014-10-31 17:42:43 -070070using namespace ndn::tlv;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070071}
72
73namespace name = ndn::name;
74namespace time = ndn::time;
75
Yingdi Yueb692ac2015-02-10 18:46:18 -080076} // namespace chronochat
Yingdi Yu0b0a7362014-08-05 16:31:30 -070077
Yingdi Yueb692ac2015-02-10 18:46:18 -080078#endif // CHRONOCHAT_COMMON_HPP