GeoNetworkingCodec.hh 786 Bytes
Newer Older
garciay's avatar
garciay committed
1
2
3
4
5
6
#ifndef GNCODEC_H
#define GNCODEC_H
#include "GeoNetworking_Types.hh"
#include "Codec.h"

class GeoNetworkingCodec : public Codec<LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu> {
garciay's avatar
garciay committed
7
8
9
10
	int encode_ (const Base_Type& type, const TTCN_Typedescriptor_t& field_descriptor, TTCN_Buffer& encoding_buffer);
	int encode_extendedHeader(const LibItsGeoNetworking__TypesAndValues::ExtendedHeader& u, TTCN_Buffer& encoding_buffer);
	int encode_decodedPayload(const LibItsGeoNetworking__TypesAndValues::DecodedPayload& u, TTCN_Buffer& encoding_buffer);

garciay's avatar
garciay committed
11
12
13
14
15
16
public:
  virtual int encode (const LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu&, OCTETSTRING& data);
  virtual int decode (const OCTETSTRING& data, LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu&);
};

#endif