Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
Varun Patil | b3d03b9 | 2021-01-08 17:09:32 +0530 | [diff] [blame] | 3 | * Copyright (c) 2013-2021, Regents of the University of California |
| 4 | * Yingdi Yu |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 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 Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 11 | */ |
| 12 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame] | 13 | #ifndef CHRONOCHAT_COMMON_HPP |
| 14 | #define CHRONOCHAT_COMMON_HPP |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 15 | |
| 16 | #include "config.h" |
| 17 | |
| 18 | #ifdef WITH_TESTS |
Yingdi Yu | 6a61444 | 2014-10-31 17:42:43 -0700 | [diff] [blame] | 19 | #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 Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 23 | #else |
Yingdi Yu | 6a61444 | 2014-10-31 17:42:43 -0700 | [diff] [blame] | 24 | #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 Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 28 | #endif |
| 29 | |
| 30 | #include <cstddef> |
| 31 | #include <list> |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 32 | #include <map> |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 33 | #include <vector> |
| 34 | #include <string> |
| 35 | |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 36 | #include <boost/assert.hpp> |
| 37 | |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 38 | #include <ndn-cxx/interest.hpp> |
| 39 | #include <ndn-cxx/data.hpp> |
| 40 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame] | 41 | namespace chronochat { |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 42 | |
| 43 | using std::size_t; |
| 44 | |
Yingdi Yu | 4647f02 | 2015-02-01 00:26:38 -0800 | [diff] [blame] | 45 | using std::shared_ptr; |
| 46 | using std::unique_ptr; |
Yingdi Yu | 4647f02 | 2015-02-01 00:26:38 -0800 | [diff] [blame] | 47 | using std::function; |
| 48 | using std::bind; |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 49 | |
| 50 | using ndn::Interest; |
| 51 | using ndn::Data; |
| 52 | using ndn::Name; |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 53 | using ndn::Block; |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 54 | |
| 55 | namespace tlv { |
Yingdi Yu | 6a61444 | 2014-10-31 17:42:43 -0700 | [diff] [blame] | 56 | using namespace ndn::tlv; |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 57 | } // namespace tlv |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 58 | |
| 59 | namespace name = ndn::name; |
| 60 | namespace time = ndn::time; |
| 61 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame] | 62 | } // namespace chronochat |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 63 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame] | 64 | #endif // CHRONOCHAT_COMMON_HPP |