NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
face-query-status-publisher.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_MGMT_QUERIED_FACE_STATUS_PUBLISHER_HPP
27 #define NFD_DAEMON_MGMT_QUERIED_FACE_STATUS_PUBLISHER_HPP
28 
30 #include "mgmt/app-face.hpp"
31 #include "fw/face-table.hpp"
32 
33 #include <ndn-cxx/management/nfd-face-query-filter.hpp>
34 
35 namespace nfd {
36 
38 {
39 public:
40  FaceQueryStatusPublisher(const FaceTable& faceTable,
41  AppFace& face,
42  const Name& prefix,
43  const ndn::nfd::FaceQueryFilter& filter,
44  ndn::KeyChain& keyChain);
45 
46  virtual
48 
49  bool
50  doesMatchFilter(const shared_ptr<Face>& face);
51 
52 protected:
53 
54  virtual size_t
55  generate(ndn::EncodingBuffer& outBuffer);
56 
57 private:
58  const FaceTable& m_faceTable;
59  const ndn::nfd::FaceQueryFilter& m_faceFilter;
60 };
61 
62 } // namespace nfd
63 
64 #endif // NFD_DAEMON_MGMT_QUERIED_FACE_STATUS_PUBLISHER_HPP
provides a publisher of Status Dataset or other segmented octet stream
FaceQueryStatusPublisher(const FaceTable &faceTable, AppFace &face, const Name &prefix, const ndn::nfd::FaceQueryFilter &filter, ndn::KeyChain &keyChain)
container of all Faces
Definition: face-table.hpp:38
EncodingImpl< EncoderTag > EncodingBuffer
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
Name abstraction to represent an absolute name.
Definition: name.hpp:46
represents Face Query Filter
virtual size_t generate(ndn::EncodingBuffer &outBuffer)
In a derived class, write the octets into outBuffer.
bool doesMatchFilter(const shared_ptr< Face > &face)