blob: 418a2ba34b0fbd11a23b72603e08e00a15b65207 [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:
Jeff Thompson1f3f5172013-07-01 19:02:36 -070017 virtual void encodeName(Name &name, std::vector<unsigned char> &output);
Jeff Thompson42380712013-06-28 10:59:33 -070018 virtual void decodeName(Name &name, const unsigned char *input, unsigned int inputLength);
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070019
Jeff Thompson98848832013-06-28 12:50:00 -070020 //virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output);
Jeff Thompson7c30eda2013-07-03 18:37:07 -070021 virtual void decodeInterest(Interest &interest, const unsigned char *input, unsigned int inputLength);
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070022
23 static BinaryXMLWireFormat &instance() { return instance_; }
24
25private:
26 static BinaryXMLWireFormat instance_;
27};
28
29}
30
31#endif
32