blob: d9811cd3760a82bb519a3f07dc142047f98b1283 [file] [log] [blame]
Jeff Thompson47eecfc2013-07-07 22:56:46 -07001/**
2 * @author: Jeff Thompson
3 * See COPYING for copyright and distribution information.
Jeff Thompson9c41dfe2013-06-27 12:10:25 -07004 */
5
Jeff Thompson9c41dfe2013-06-27 12:10:25 -07006#ifndef NDN_WIREFORMAT_HPP
7#define NDN_WIREFORMAT_HPP
8
9#include <vector>
10
11namespace ndn {
12
13class Name;
14class Interest;
15
16class WireFormat {
17public:
18 virtual void encodeName(Name &name, std::vector<unsigned char> &output);
Jeff Thompson42380712013-06-28 10:59:33 -070019 virtual void decodeName(Name &name, const unsigned char *input, unsigned int inputLength);
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070020
21 virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output);
Jeff Thompson42380712013-06-28 10:59:33 -070022 virtual void decodeInterest(Interest &interest, const unsigned char *input, unsigned int inputLength);
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070023
24 // etc. for each type of object.
25};
26
27}
28
29#endif
30