blob: 8cd384e08de4514471694cb7f81c9ef52abdb0a7 [file] [log] [blame]
Varun Patila24bd3e2020-11-24 10:08:33 +05301/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
Varun Patilb3d03b92021-01-08 17:09:32 +05303 * Copyright (c) 2013-2021, Regents of the University of California
4 * Yingdi Yu
Varun Patila24bd3e2020-11-24 10:08:33 +05305 *
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::function;
48using std::bind;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070049
50using ndn::Interest;
51using ndn::Data;
52using ndn::Name;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070053using ndn::Block;
Yingdi Yu0b0a7362014-08-05 16:31:30 -070054
55namespace tlv {
Yingdi Yu6a614442014-10-31 17:42:43 -070056using namespace ndn::tlv;
Varun Patila24bd3e2020-11-24 10:08:33 +053057} // namespace tlv
Yingdi Yu0b0a7362014-08-05 16:31:30 -070058
59namespace name = ndn::name;
60namespace time = ndn::time;
61
Yingdi Yueb692ac2015-02-10 18:46:18 -080062} // namespace chronochat
Yingdi Yu0b0a7362014-08-05 16:31:30 -070063
Yingdi Yueb692ac2015-02-10 18:46:18 -080064#endif // CHRONOCHAT_COMMON_HPP