blob: f09ae223d3a015d50e49569721b28fd5c0880b61 [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:
Jeff Thompsond345a5b2013-07-08 16:18:23 -070018 virtual void encodeName(const 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
Jeff Thompsond345a5b2013-07-08 16:18:23 -070021 virtual void encodeInterest(const 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