Jeff Thompson | aa4e6db | 2013-07-15 17:25:23 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @author: Jeff Thompson |
| 3 | * See COPYING for copyright and distribution information. |
| 4 | */ |
| 5 | |
| 6 | #ifndef NDN_NDN_HPP |
| 7 | #define NDN_NDN_HPP |
| 8 | |
Jeff Thompson | b982b6d | 2013-07-15 18:15:45 -0700 | [diff] [blame^] | 9 | #include "Closure.hpp" |
Jeff Thompson | aa4e6db | 2013-07-15 17:25:23 -0700 | [diff] [blame] | 10 | #include "encoding/BinaryXMLElementReader.hpp" |
| 11 | |
| 12 | namespace ndn { |
| 13 | |
| 14 | class NDN : public ElementListener { |
| 15 | public: |
Jeff Thompson | b982b6d | 2013-07-15 18:15:45 -0700 | [diff] [blame^] | 16 | NDN(Closure *closure) |
| 17 | { |
| 18 | closure_ = closure; |
| 19 | } |
| 20 | |
Jeff Thompson | aa4e6db | 2013-07-15 17:25:23 -0700 | [diff] [blame] | 21 | virtual void onReceivedElement(unsigned char *element, unsigned int elementLength); |
Jeff Thompson | b982b6d | 2013-07-15 18:15:45 -0700 | [diff] [blame^] | 22 | |
| 23 | private: |
| 24 | Closure *closure_; |
Jeff Thompson | aa4e6db | 2013-07-15 17:25:23 -0700 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | } |
| 28 | |
| 29 | #endif |