EtsiTs103097Codec_Data.hh
Go to the documentation of this file.
#ifndef EtsiTs103097CODEC_DATA_H
#define EtsiTs103097CODEC_DATA_H
#include "Codec.hh"
//#include "CodecOer.hh"
#include "Params.hh"
#include "EtsiTs103097Module.hh"
//class BITSTRING;
//class OCTETSTRING;
//class IEEE1609dot2::Ieee1609Dot2Data;
// class EtsiTs103097PDUCodec// : public OERCodec <IEEE1609dot2::Ieee1609Dot2Data>
// {
// public:
// explicit EtsiTs103097PDUCodec() { };
// virtual int encode (const IEEE1609dot2::Ieee1609Dot2Data& p_cert, BITSTRING& data);
// virtual int decode (const BITSTRING& data, IEEE1609dot2::Ieee1609Dot2Data&);
// };
class EtsiTs103097Codec_Data : public Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>
{
// EtsiTs103097PDUCodec asnCodec;
public:
// explicit EtsiTs103097Codec_Data() : Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>(), asnCodec() { };
explicit EtsiTs103097Codec_Data() : Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>() { };
virtual ~EtsiTs103097Codec_Data() { };
virtual int encode (const IEEE1609dot2::Ieee1609Dot2Data& p_ieee1609Dot2Data, OCTETSTRING& p_data);
virtual int decode (const OCTETSTRING& p_data, IEEE1609dot2::Ieee1609Dot2Data& p_ieee1609Dot2Data, Params* params = NULL);
};
#endif
EtsiTs103097Codec_Data::encode
virtual int encode(const IEEE1609dot2::Ieee1609Dot2Data &p_ieee1609Dot2Data, OCTETSTRING &p_data)
Encode typed message into an octet string.
Definition: EtsiTs103097Codec_Data.cc:9
EtsiTs103097Codec_Data::decode
virtual int decode(const OCTETSTRING &p_data, IEEE1609dot2::Ieee1609Dot2Data &p_ieee1609Dot2Data, Params *params=NULL)
Encode typed message into an octet string format.
Definition: EtsiTs103097Codec_Data.cc:23
EtsiTs103097Codec_Data
Definition: EtsiTs103097Codec_Data.hh:21
Params.hh
Header file for the parameter dictionary.
IEEE1609dot2
Definition: security_db_record.hh:8
Codec
Declare TITAN class.
Definition: Codec.hh:25
EtsiTs103097Codec_Data::EtsiTs103097Codec_Data
EtsiTs103097Codec_Data()
Definition: EtsiTs103097Codec_Data.hh:27
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
Codec.hh
Header file for ITS abstract codec definition.
EtsiTs103097Codec_Data::~EtsiTs103097Codec_Data
virtual ~EtsiTs103097Codec_Data()
Definition: EtsiTs103097Codec_Data.hh:28