Added Closure class
diff --git a/ndn-cpp/NDN.hpp b/ndn-cpp/NDN.hpp
index a89918b..9c8c691 100644
--- a/ndn-cpp/NDN.hpp
+++ b/ndn-cpp/NDN.hpp
@@ -6,13 +6,22 @@
#ifndef NDN_NDN_HPP
#define NDN_NDN_HPP
+#include "Closure.hpp"
#include "encoding/BinaryXMLElementReader.hpp"
namespace ndn {
class NDN : public ElementListener {
public:
+ NDN(Closure *closure)
+ {
+ closure_ = closure;
+ }
+
virtual void onReceivedElement(unsigned char *element, unsigned int elementLength);
+
+private:
+ Closure *closure_;
};
}