Steve DiBenedetto | 6214e56 | 2014-03-15 16:27:04 -0600 | [diff] [blame] | 1 | /* -*- 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 | |
| 13 | namespace nfd { |
| 14 | |
| 15 | class FibEnumerationPublisher : public SegmentPublisher |
| 16 | { |
| 17 | public: |
| 18 | FibEnumerationPublisher(const Fib& fib, |
| 19 | shared_ptr<AppFace> face, |
| 20 | const Name& prefix); |
| 21 | |
| 22 | virtual |
| 23 | ~FibEnumerationPublisher(); |
| 24 | |
| 25 | protected: |
| 26 | |
| 27 | virtual size_t |
| 28 | generate(ndn::EncodingBuffer& outBuffer); |
| 29 | |
| 30 | private: |
| 31 | const Fib& m_fib; |
| 32 | }; |
| 33 | |
| 34 | } // namespace nfd |
| 35 | |
| 36 | #endif // NFD_MGMT_FIB_ENUMERATION_PUBLISHER_HPP |