blob: 90f5e5437d1206709244509d94f2ef85cdcf9e9d [file] [log] [blame]
Varun Patila24bd3e2020-11-24 10:08:33 +05301/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2020, Regents of the University of California
4 * Yingdi Yu
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Mengjin Yan <jane.yan0129@gmail.com>
9 * Yingdi Yu <yingdi@cs.ucla.edu>
10 * Qiuhan Ding <qiuhanding@cs.ucla.edu>
Yingdi Yu0b0a7362014-08-05 16:31:30 -070011 */
12
Yingdi Yueb692ac2015-02-10 18:46:18 -080013#ifndef CHRONOCHAT_COMMON_HPP
14#define CHRONOCHAT_COMMON_HPP
Yingdi Yu0b0a7362014-08-05 16:31:30 -070015
16#include "config.h"
17
18#ifdef WITH_TESTS
Yingdi Yu6a614442014-10-31 17:42:43 -070019#define CHRONOCHAT_VIRTUAL_WITH_TESTS virtual
20#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PROTECTED public
21#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PRIVATE public
22#define CHRONOCHAT_PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
Yingdi Yu0b0a7362014-08-05 16:31:30 -070023#else
Yingdi Yu6a614442014-10-31 17:42:43 -070024#define CHRONOCHAT_VIRTUAL_WITH_TESTS
25#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
26#define CHRONOCHAT_PUBLIC_WITH_TESTS_ELSE_PRIVATE private
27#define CHRONOCHAT_PROTECTED_WITH_TESTS_ELSE_PRIVATE private
Yingdi Yu0b0a7362014-08-05 16:31:30 -070028#endif
29
30#include <cstddef>
31#include <list>
Yingdi Yu0b0a7362014-08-05 16:31:30 -070032#include <map>
Yingdi Yu0b0a7362014-08-05 16:31:30 -070033#include <vector>
34#include <string>
35
Varun Patila24bd3e2020-11-24 10:08:33 +053036#include <boost/assert.hpp>
37
Yingdi Yu0b0a7362014-08-05 16:31:30 -070038#include <ndn-cxx/interest.hpp>
39#include <ndn-cxx/data.hpp>
40
Yingdi Yueb692ac2015-02-10 18:46:18 -080041namespace chronochat {
Yingdi Yu0b0a7362014-08-05 16:31:30 -070042
43using std::size_t;
44
Yingdi Yu4647f022015-02-01 00:26:38 -080045using std::shared_ptr;
46using std::unique_ptr;
Yingdi Yu4647f022015-02-01 00:26:38 -080047using std::make_shared;
Yingdi Yu4647f022015-02-01 00:26:38 -080048using std::function;
49using std::bind;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070050
51using ndn::Interest;
52using ndn::Data;
53using ndn::Name;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070054using ndn::Block;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070055
56namespace tlv {
Yingdi Yu6a614442014-10-31 17:42:43 -070057using namespace ndn::tlv;
Varun Patila24bd3e2020-11-24 10:08:33 +053058} // namespace tlv
Yingdi Yu0b0a7362014-08-05 16:31:30 -070059
60namespace name = ndn::name;
61namespace time = ndn::time;
62
Yingdi Yueb692ac2015-02-10 18:46:18 -080063} // namespace chronochat
Yingdi Yu0b0a7362014-08-05 16:31:30 -070064
Yingdi Yueb692ac2015-02-10 18:46:18 -080065#endif // CHRONOCHAT_COMMON_HPP