blob: f8cf1eb490f1459873f2cd111c810022ffde1fc2 [file] [log] [blame]
/*
* Author: Jeff Thompson
*
* BSD license, See the LICENSE file for more information.
*/
#ifndef NDN_BINARYXMLWIREFORMAT_HPP
#define NDN_BINARYXMLWIREFORMAT_HPP
#include "WireFormat.hpp"
namespace ndn {
class BinaryXMLWireFormat : public WireFormat {
public:
virtual void encodeName(Name &name, std::vector<unsigned char> &output);
virtual void decodeName(Name &name, std::vector<unsigned char> &input);
virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output);
virtual void decodeInterest(Interest &interest, std::vector<unsigned char> &input);
static BinaryXMLWireFormat &instance() { return instance_; }
private:
static BinaryXMLWireFormat instance_;
};
}
#endif