Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 13 | namespace ndn { |
| 14 | |
| 15 | class BinaryXMLWireFormat : public WireFormat { |
| 16 | public: |
Jeff Thompson | 1f3f517 | 2013-07-01 19:02:36 -0700 | [diff] [blame] | 17 | virtual void encodeName(Name &name, std::vector<unsigned char> &output); |
Jeff Thompson | 4238071 | 2013-06-28 10:59:33 -0700 | [diff] [blame] | 18 | virtual void decodeName(Name &name, const unsigned char *input, unsigned int inputLength); |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 19 | |
Jeff Thompson | 9884883 | 2013-06-28 12:50:00 -0700 | [diff] [blame] | 20 | //virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output); |
| 21 | //virtual void decodeInterest(Interest &interest, const unsigned char *input, unsigned int inputLength); |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 22 | |
| 23 | static BinaryXMLWireFormat &instance() { return instance_; } |
| 24 | |
| 25 | private: |
| 26 | static BinaryXMLWireFormat instance_; |
| 27 | }; |
| 28 | |
| 29 | } |
| 30 | |
| 31 | #endif |
| 32 | |