Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [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_INTERNAL_FACE_HPP |
| 8 | #define NFD_MGMT_INTERNAL_FACE_HPP |
| 9 | |
| 10 | #include "face/face.hpp" |
| 11 | #include "app-face.hpp" |
| 12 | |
| 13 | namespace nfd { |
| 14 | |
| 15 | class InternalFace : public Face, public AppFace |
| 16 | { |
| 17 | public: |
| 18 | |
| 19 | InternalFace(); |
| 20 | |
| 21 | // Overridden Face methods for forwarder |
| 22 | |
| 23 | virtual void |
| 24 | sendInterest(const Interest& interest); |
| 25 | |
| 26 | virtual void |
| 27 | sendData(const Data& data); |
| 28 | |
| 29 | // Methods implementing AppFace interface. Do not invoke from forwarder. |
| 30 | |
| 31 | virtual void |
| 32 | setInterestFilter(const Name& filter, |
| 33 | OnInterest onInterest); |
| 34 | |
| 35 | virtual void |
| 36 | put(const Data& data); |
| 37 | |
| 38 | virtual |
| 39 | ~InternalFace(); |
| 40 | |
| 41 | private: |
| 42 | |
| 43 | // void |
| 44 | // onConfig(ConfigFile::Node section, bool isDryRun); |
| 45 | |
| 46 | std::map<Name, OnInterest> m_interestFilters; |
| 47 | |
| 48 | }; |
| 49 | |
| 50 | } // namespace nfd |
| 51 | |
| 52 | #endif //NFD_MGMT_INTERNAL_FACE_HPP |