Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * COPYRIGHT MSG GOES HERE... |
| 4 | */ |
| 5 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame^] | 6 | #ifndef CHRONOCHAT_COMMON_HPP |
| 7 | #define CHRONOCHAT_COMMON_HPP |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 8 | |
| 9 | #include "config.h" |
| 10 | |
| 11 | #ifdef WITH_TESTS |
Yingdi Yu | 6a61444 | 2014-10-31 17:42:43 -0700 | [diff] [blame] | 12 | #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 Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 16 | #else |
Yingdi Yu | 6a61444 | 2014-10-31 17:42:43 -0700 | [diff] [blame] | 17 | #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 Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 21 | #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 Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame^] | 42 | namespace chronochat { |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 43 | |
| 44 | using std::size_t; |
| 45 | |
| 46 | using boost::noncopyable; |
| 47 | |
Yingdi Yu | 4647f02 | 2015-02-01 00:26:38 -0800 | [diff] [blame] | 48 | using std::shared_ptr; |
| 49 | using std::unique_ptr; |
| 50 | using std::weak_ptr; |
| 51 | using std::enable_shared_from_this; |
| 52 | using std::make_shared; |
| 53 | using std::static_pointer_cast; |
| 54 | using std::dynamic_pointer_cast; |
| 55 | using std::const_pointer_cast; |
| 56 | using std::function; |
| 57 | using std::bind; |
| 58 | using std::ref; |
| 59 | using std::cref; |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 60 | |
| 61 | using ndn::Interest; |
| 62 | using ndn::Data; |
| 63 | using ndn::Name; |
| 64 | using ndn::Exclude; |
| 65 | using ndn::Block; |
| 66 | using ndn::Signature; |
| 67 | using ndn::KeyLocator; |
| 68 | |
| 69 | namespace tlv { |
Yingdi Yu | 6a61444 | 2014-10-31 17:42:43 -0700 | [diff] [blame] | 70 | using namespace ndn::tlv; |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | namespace name = ndn::name; |
| 74 | namespace time = ndn::time; |
| 75 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame^] | 76 | } // namespace chronochat |
Yingdi Yu | 0b0a736 | 2014-08-05 16:31:30 -0700 | [diff] [blame] | 77 | |
Yingdi Yu | eb692ac | 2015-02-10 18:46:18 -0800 | [diff] [blame^] | 78 | #endif // CHRONOCHAT_COMMON_HPP |