blob: 3b14f7962ebbca4f9fd05ff4284adf0da7707a4f [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
Yingdi Yu0b0a7362014-08-05 16:31:30 -070031#include <ndn-cxx/interest.hpp>
32#include <ndn-cxx/data.hpp>
33
34#include <boost/algorithm/string.hpp>
35#include <boost/asio.hpp>
36#include <boost/assert.hpp>
37#include <boost/lexical_cast.hpp>
38#include <boost/noncopyable.hpp>
39#include <boost/property_tree/ptree.hpp>
40
Yingdi Yueb692ac2015-02-10 18:46:18 -080041namespace chronochat {
Yingdi Yu0b0a7362014-08-05 16:31:30 -070042
43using std::size_t;
44
45using boost::noncopyable;
46
Yingdi Yu4647f022015-02-01 00:26:38 -080047using std::shared_ptr;
48using std::unique_ptr;
49using std::weak_ptr;
50using std::enable_shared_from_this;
51using std::make_shared;
52using std::static_pointer_cast;
53using std::dynamic_pointer_cast;
54using std::const_pointer_cast;
55using std::function;
56using std::bind;
57using std::ref;
58using std::cref;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070059
60using ndn::Interest;
61using ndn::Data;
62using ndn::Name;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070063using ndn::Block;
64using ndn::Signature;
65using ndn::KeyLocator;
66
67namespace tlv {
Yingdi Yu6a614442014-10-31 17:42:43 -070068using namespace ndn::tlv;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070069}
70
71namespace name = ndn::name;
72namespace time = ndn::time;
73
Yingdi Yueb692ac2015-02-10 18:46:18 -080074} // namespace chronochat
Yingdi Yu0b0a7362014-08-05 16:31:30 -070075
Yingdi Yueb692ac2015-02-10 18:46:18 -080076#endif // CHRONOCHAT_COMMON_HPP