blob: f8cf1eb490f1459873f2cd111c810022ffde1fc2 [file] [log] [blame]
Jeff Thompson9c41dfe2013-06-27 12:10:25 -07001/*
2 * Author: Jeff Thompson
3 *
4 * BSD license, See the LICENSE file for more information.
5 */
6
7
8#ifndef NDN_BINARYXMLWIREFORMAT_HPP
9#define NDN_BINARYXMLWIREFORMAT_HPP
10
11#include "WireFormat.hpp"
12
13namespace ndn {
14
15class BinaryXMLWireFormat : public WireFormat {
16public:
17 virtual void encodeName(Name &name, std::vector<unsigned char> &output);
18 virtual void decodeName(Name &name, std::vector<unsigned char> &input);
19
20 virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output);
21 virtual void decodeInterest(Interest &interest, std::vector<unsigned char> &input);
22
23 static BinaryXMLWireFormat &instance() { return instance_; }
24
25private:
26 static BinaryXMLWireFormat instance_;
27};
28
29}
30
31#endif
32