blob: e9e4802a2a0eec0c524dd44cfce88d1d8cd23070 [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_BINARYXMLWIREFORMAT_HPP
7#define NDN_BINARYXMLWIREFORMAT_HPP
8
Jeff Thompson53412192013-08-06 13:35:50 -07009#include "wire-format.hpp"
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070010
11namespace ndn {
12
Jeff Thompsonf0fea002013-07-30 17:22:42 -070013class BinaryXmlWireFormat : public WireFormat {
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070014public:
Jeff Thompsonb0979fd2013-07-30 15:48:21 -070015 virtual ptr_lib::shared_ptr<std::vector<unsigned char> > encodeInterest(const Interest &interest);
Jeff Thompson7c30eda2013-07-03 18:37:07 -070016 virtual void decodeInterest(Interest &interest, const unsigned char *input, unsigned int inputLength);
Jeff Thompson5cae5e52013-07-10 19:41:20 -070017
Jeff Thompson56ec9e22013-08-02 11:34:07 -070018 virtual ptr_lib::shared_ptr<std::vector<unsigned char> > encodeData(const Data &data);
19 virtual void decodeData(Data &data, const unsigned char *input, unsigned int inputLength);
Jeff Thompson9c41dfe2013-06-27 12:10:25 -070020};
21
22}
23
24#endif
25