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