DENMCodec.hh
Go to the documentation of this file.
#ifndef DENMCODEC_H
#define DENMCODEC_H
#include "Codec.hh"
#include "per_code.hh"
#include "Params.hh"
class BITSTRING;
class OCTETSTRING;
class Base_Type;
class TTCN_Typedescriptor_t;
class TTCN_Buffer;
namespace DENM__PDU__Descriptions {
class DENM;
}
class DENMPDUCodec : public per_code <DENM__PDU__Descriptions::DENM>
{
public:
explicit DENMPDUCodec() { };
virtual int encode (const DENM__PDU__Descriptions::DENM& denm, BITSTRING& data);
virtual int decode (const BITSTRING& data, DENM__PDU__Descriptions::DENM&);
};
class DENMCodec : public Codec<DENM__PDU__Descriptions::DENM, DENM__PDU__Descriptions::DENM>
{
DENMPDUCodec asnCodec;
public:
explicit DENMCodec() : Codec<DENM__PDU__Descriptions::DENM, DENM__PDU__Descriptions::DENM>(), asnCodec() { };
virtual ~DENMCodec() { };
virtual int encode (const DENM__PDU__Descriptions::DENM& denm, OCTETSTRING& data);
virtual int decode (const OCTETSTRING& data, DENM__PDU__Descriptions::DENM&, Params* params = NULL);
};
#endif
DENMPDUCodec
Definition: DENMCodec.hh:18
DENMCodec::asnCodec
DENMPDUCodec asnCodec
Definition: DENMCodec.hh:28
per_code.hh
Header file for TITAN message to ASN.1 PER message codec.
Params.hh
Header file for the parameter dictionary.
DENMCodec::~DENMCodec
virtual ~DENMCodec()
Definition: DENMCodec.hh:32
DENMCodec
Definition: DENMCodec.hh:26
Codec
Declare TITAN class.
Definition: Codec.hh:25
per_code
Declare asn1c class.
Definition: per_code.hh:27
DENMPDUCodec::DENMPDUCodec
DENMPDUCodec()
Definition: DENMCodec.hh:21
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
Codec.hh
Header file for ITS abstract codec definition.
DENM__PDU__Descriptions
Definition: DENMCodec.hh:14
DENMCodec::DENMCodec
DENMCodec()
Definition: DENMCodec.hh:31