blob: 70d959fdfbf98cc2f817066f0b0a53bd541f1f0f [file] [log] [blame]
Shuo Chen9c2477f2014-03-13 15:01:06 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyeve1e6f2a2014-04-25 11:28:12 -07003 * Copyright (c) 2014, Regents of the University of California.
4 *
5 * This file is part of NDN repo-ng (Next generation of NDN repository).
6 * See AUTHORS.md for complete list of repo-ng authors and contributors.
7 *
8 * repo-ng is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * repo-ng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * repo-ng, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Shuo Chen9c2477f2014-03-13 15:01:06 -070018 */
Shuo Chenba793e92014-03-17 17:17:16 -070019
Alexander Afanasyev39d98072014-05-04 12:46:29 -070020#ifndef REPO_COMMON_HPP
21#define REPO_COMMON_HPP
Shuo Chen9c2477f2014-03-13 15:01:06 -070022
Alexander Afanasyeve291caf2014-04-25 11:17:36 -070023#include <ndn-cxx/face.hpp>
Alexander Afanasyev39d98072014-05-04 12:46:29 -070024#include <ndn-cxx/interest.hpp>
25#include <ndn-cxx/name.hpp>
26#include <ndn-cxx/data.hpp>
27#include <ndn-cxx/selectors.hpp>
28#include <ndn-cxx/key-locator.hpp>
Alexander Afanasyeve291caf2014-04-25 11:17:36 -070029#include <ndn-cxx/security/key-chain.hpp>
30#include <ndn-cxx/util/command-interest-validator.hpp>
31#include <ndn-cxx/util/time.hpp>
32#include <ndn-cxx/util/scheduler.hpp>
Alexander Afanasyev39d98072014-05-04 12:46:29 -070033
34#include <boost/utility.hpp>
Shuo Chen9c2477f2014-03-13 15:01:06 -070035#include <boost/random/mersenne_twister.hpp>
36#include <boost/random/uniform_int_distribution.hpp>
Alexander Afanasyev39d98072014-05-04 12:46:29 -070037
Shuo Chen9c2477f2014-03-13 15:01:06 -070038#include <map>
Alexander Afanasyev39d98072014-05-04 12:46:29 -070039#include <string>
40#include <vector>
Shuo Chen29c77fe2014-03-18 11:29:41 -070041#include <algorithm>
Shuo Chen9c2477f2014-03-13 15:01:06 -070042
43namespace repo {
Shuo Chenba793e92014-03-17 17:17:16 -070044
Shuo Chen9c2477f2014-03-13 15:01:06 -070045using ndn::Face;
Alexander Afanasyev39d98072014-05-04 12:46:29 -070046using ndn::Block;
Shuo Chen9c2477f2014-03-13 15:01:06 -070047using ndn::Name;
48using ndn::Interest;
Shuo Chen9c2477f2014-03-13 15:01:06 -070049using ndn::Selectors;
Alexander Afanasyev39d98072014-05-04 12:46:29 -070050using ndn::Exclude;
51using ndn::Data;
52using ndn::KeyLocator;
53using ndn::KeyChain;
Shuo Chenba793e92014-03-17 17:17:16 -070054using ndn::CommandInterestValidator;
Shuo Chen29c77fe2014-03-18 11:29:41 -070055using ndn::Scheduler;
Shuo Chenba793e92014-03-17 17:17:16 -070056
Alexander Afanasyev39d98072014-05-04 12:46:29 -070057using ndn::bind;
Alexander Afanasyevb0c78ea2014-04-15 18:12:04 -070058using ndn::shared_ptr;
59using ndn::make_shared;
60using ndn::enable_shared_from_this;
Shuo Chenba793e92014-03-17 17:17:16 -070061
Alexander Afanasyev39d98072014-05-04 12:46:29 -070062using std::vector;
63using std::string;
64
65using boost::noncopyable;
66
Shuo Chen29c77fe2014-03-18 11:29:41 -070067typedef uint64_t ProcessId;
68typedef uint64_t SegmentNo;
69
Alexander Afanasyev39d98072014-05-04 12:46:29 -070070} // namespace repo
Shuo Chen9c2477f2014-03-13 15:01:06 -070071
Alexander Afanasyev39d98072014-05-04 12:46:29 -070072#endif // REPO_COMMON_HPP