ETSI STF525 / Internal Testing test suite This project provides an internal testing test suite and its associated Test Adapter/Codec

DENMCodec.hh
Go to the documentation of this file.
1 #ifndef DENMCODEC_H
2 #define DENMCODEC_H
3
4 #include "Codec.hh"
5 #include "per_code.hh"
6 #include "Params.hh"
7
8 class BITSTRING;
9 class OCTETSTRING;
10 class Base_Type;
11 class TTCN_Typedescriptor_t;
12 class TTCN_Buffer;
13
14 namespace DENM__PDU__Descriptions {
15 class DENM;
16 }
17
18 class DENMPDUCodec : public per_code <DENM__PDU__Descriptions::DENM>
19 {
20 public:
21 explicit DENMPDUCodec() { };
22 virtual int encode (const DENM__PDU__Descriptions::DENM& denm, BITSTRING& data);
23 virtual int decode (const BITSTRING& data, DENM__PDU__Descriptions::DENM&);
24 };
25
26 class DENMCodec : public Codec<DENM__PDU__Descriptions::DENM, DENM__PDU__Descriptions::DENM>
27 {
28 DENMPDUCodec asnCodec;
29
30 public:
31 explicit DENMCodec() : Codec<DENM__PDU__Descriptions::DENM, DENM__PDU__Descriptions::DENM>(), asnCodec() { };
32 virtual ~DENMCodec() { };
33
34 virtual int encode (const DENM__PDU__Descriptions::DENM& denm, OCTETSTRING& data);
35 virtual int decode (const OCTETSTRING& data, DENM__PDU__Descriptions::DENM&, Params* params = NULL);
36 };
37
38 #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