Jeff Thompson | 47eecfc | 2013-07-07 22:56:46 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @author: Jeff Thompson |
| 3 | * See COPYING for copyright and distribution information. |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 6 | #ifndef NDN_BINARYXMLWIREFORMAT_HPP |
| 7 | #define NDN_BINARYXMLWIREFORMAT_HPP |
| 8 | |
| 9 | #include "WireFormat.hpp" |
| 10 | |
| 11 | namespace ndn { |
| 12 | |
| 13 | class BinaryXMLWireFormat : public WireFormat { |
| 14 | public: |
Jeff Thompson | 1f3f517 | 2013-07-01 19:02:36 -0700 | [diff] [blame] | 15 | virtual void encodeName(Name &name, std::vector<unsigned char> &output); |
Jeff Thompson | 4238071 | 2013-06-28 10:59:33 -0700 | [diff] [blame] | 16 | virtual void decodeName(Name &name, const unsigned char *input, unsigned int inputLength); |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 17 | |
Jeff Thompson | 214c7be | 2013-07-08 15:23:00 -0700 | [diff] [blame] | 18 | virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output); |
Jeff Thompson | 7c30eda | 2013-07-03 18:37:07 -0700 | [diff] [blame] | 19 | virtual void decodeInterest(Interest &interest, const unsigned char *input, unsigned int inputLength); |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 20 | |
| 21 | static BinaryXMLWireFormat &instance() { return instance_; } |
| 22 | |
| 23 | private: |
| 24 | static BinaryXMLWireFormat instance_; |
| 25 | }; |
| 26 | |
| 27 | } |
| 28 | |
| 29 | #endif |
| 30 | |