blob: d9cb5c9116b75f90971b5a42ff215c94160d0c70 [file] [log] [blame]
Steve DiBenedetto6214e562014-03-15 16:27:04 -06001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#ifndef NFD_MGMT_FIB_ENUMERATION_PUBLISHER_HPP
8#define NFD_MGMT_FIB_ENUMERATION_PUBLISHER_HPP
9
10#include "table/fib.hpp"
11#include "mgmt/segment-publisher.hpp"
12
13namespace nfd {
14
15class FibEnumerationPublisher : public SegmentPublisher
16{
17public:
18 FibEnumerationPublisher(const Fib& fib,
19 shared_ptr<AppFace> face,
20 const Name& prefix);
21
22 virtual
23 ~FibEnumerationPublisher();
24
25protected:
26
27 virtual size_t
28 generate(ndn::EncodingBuffer& outBuffer);
29
30private:
31 const Fib& m_fib;
32};
33
34} // namespace nfd
35
36#endif // NFD_MGMT_FIB_ENUMERATION_PUBLISHER_HPP