blob: 9c8c691fa68f1a43c8ba6db335b2ea0226c59b58 [file] [log] [blame]
Jeff Thompsonaa4e6db2013-07-15 17:25:23 -07001/**
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 Thompsonb982b6d2013-07-15 18:15:45 -07009#include "Closure.hpp"
Jeff Thompsonaa4e6db2013-07-15 17:25:23 -070010#include "encoding/BinaryXMLElementReader.hpp"
11
12namespace ndn {
13
14class NDN : public ElementListener {
15public:
Jeff Thompsonb982b6d2013-07-15 18:15:45 -070016 NDN(Closure *closure)
17 {
18 closure_ = closure;
19 }
20
Jeff Thompsonaa4e6db2013-07-15 17:25:23 -070021 virtual void onReceivedElement(unsigned char *element, unsigned int elementLength);
Jeff Thompsonb982b6d2013-07-15 18:15:45 -070022
23private:
24 Closure *closure_;
Jeff Thompsonaa4e6db2013-07-15 17:25:23 -070025};
26
27}
28
29#endif