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 | |
Steve DiBenedetto | 042bfe9 | 2014-01-30 15:05:08 -0700 | [diff] [blame^] | 15 | class FibManager; |
| 16 | |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 17 | class InternalFace : public Face, public AppFace |
| 18 | { |
| 19 | public: |
| 20 | |
Steve DiBenedetto | 042bfe9 | 2014-01-30 15:05:08 -0700 | [diff] [blame^] | 21 | explicit |
| 22 | InternalFace(FibManager& manager); |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 23 | |
| 24 | // Overridden Face methods for forwarder |
| 25 | |
| 26 | virtual void |
| 27 | sendInterest(const Interest& interest); |
| 28 | |
| 29 | virtual void |
| 30 | sendData(const Data& data); |
| 31 | |
| 32 | // Methods implementing AppFace interface. Do not invoke from forwarder. |
| 33 | |
| 34 | virtual void |
| 35 | setInterestFilter(const Name& filter, |
| 36 | OnInterest onInterest); |
| 37 | |
| 38 | virtual void |
| 39 | put(const Data& data); |
| 40 | |
| 41 | virtual |
| 42 | ~InternalFace(); |
| 43 | |
| 44 | private: |
| 45 | |
| 46 | // void |
| 47 | // onConfig(ConfigFile::Node section, bool isDryRun); |
| 48 | |
| 49 | std::map<Name, OnInterest> m_interestFilters; |
Steve DiBenedetto | 042bfe9 | 2014-01-30 15:05:08 -0700 | [diff] [blame^] | 50 | FibManager& m_fibManager; // for mock only |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 51 | |
| 52 | }; |
| 53 | |
| 54 | } // namespace nfd |
| 55 | |
| 56 | #endif //NFD_MGMT_INTERNAL_FACE_HPP |