Steve DiBenedetto | 9f6c364 | 2014-03-10 17:02:27 -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_FACE_STATUS_PUBLISHER_HPP |
| 8 | #define NFD_MGMT_FACE_STATUS_PUBLISHER_HPP |
| 9 | |
| 10 | #include "fw/face-table.hpp" |
| 11 | #include "mgmt/segment-publisher.hpp" |
| 12 | |
| 13 | namespace nfd { |
| 14 | |
| 15 | class FaceStatusPublisher : public SegmentPublisher |
| 16 | { |
| 17 | public: |
| 18 | FaceStatusPublisher(const FaceTable& faceTable, |
| 19 | shared_ptr<AppFace> face, |
| 20 | const Name& prefix); |
| 21 | |
| 22 | virtual |
| 23 | ~FaceStatusPublisher(); |
| 24 | |
| 25 | protected: |
| 26 | |
| 27 | virtual size_t |
| 28 | generate(ndn::EncodingBuffer& outBuffer); |
| 29 | |
| 30 | private: |
| 31 | const FaceTable& m_faceTable; |
| 32 | }; |
| 33 | |
| 34 | } // namespace nfd |
| 35 | |
| 36 | #endif // NFD_MGMT_FACE_STATUS_PUBLISHER_HPP |