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_WIREFORMAT_HPP |
| 9 | #define NDN_WIREFORMAT_HPP |
| 10 | |
| 11 | #include <vector> |
| 12 | |
| 13 | namespace ndn { |
| 14 | |
| 15 | class Name; |
| 16 | class Interest; |
| 17 | |
| 18 | class WireFormat { |
| 19 | public: |
| 20 | virtual void encodeName(Name &name, std::vector<unsigned char> &output); |
Jeff Thompson | 4238071 | 2013-06-28 10:59:33 -0700 | [diff] [blame] | 21 | virtual void decodeName(Name &name, const unsigned char *input, unsigned int inputLength); |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 22 | |
| 23 | virtual void encodeInterest(Interest &interest, std::vector<unsigned char> &output); |
Jeff Thompson | 4238071 | 2013-06-28 10:59:33 -0700 | [diff] [blame] | 24 | virtual void decodeInterest(Interest &interest, const unsigned char *input, unsigned int inputLength); |
Jeff Thompson | 9c41dfe | 2013-06-27 12:10:25 -0700 | [diff] [blame] | 25 | |
| 26 | // etc. for each type of object. |
| 27 | }; |
| 28 | |
| 29 | } |
| 30 | |
| 31 | #endif |
| 32 | |