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

IVIMCodec.hh
Go to the documentation of this file.
1 #ifndef IVIMCODEC_H
2 #define IVIMCODEC_H
3
4 #include "Codec.hh"
5 #include "per_code.hh"
6 #include "Params.hh"
7
8 #include "LibItsIvim_TestSystem.hh"
9 //class BITSTRING;
10 //class OCTETSTRING;
11 //class IVIM__PDU__Descriptions::IVIM;
12
13 class IVIMPDUCodec : public per_code <IVIM__PDU__Descriptions::IVIM>
14 {
15 public:
16 explicit IVIMPDUCodec() { };
17 virtual int encode (const IVIM__PDU__Descriptions::IVIM& ivim, BITSTRING& data);
18 virtual int decode (const BITSTRING& data, IVIM__PDU__Descriptions::IVIM&);
19 };
20
21 class IVIMCodec : public Codec<IVIM__PDU__Descriptions::IVIM, IVIM__PDU__Descriptions::IVIM>
22 {
23 IVIMPDUCodec asnCodec;
24
25 public:
26 explicit IVIMCodec() : Codec<IVIM__PDU__Descriptions::IVIM, IVIM__PDU__Descriptions::IVIM>(), asnCodec() { };
27 virtual ~IVIMCodec() { };
28
29 virtual int encode (const IVIM__PDU__Descriptions::IVIM& ivim, OCTETSTRING& data);
30 virtual int decode (const OCTETSTRING& data, IVIM__PDU__Descriptions::IVIM&, Params* params = NULL);
31 };
32
33 #endif
IVIMPDUCodec::IVIMPDUCodec
IVIMPDUCodec()
Definition: IVIMCodec.hh:16
per_code.hh
Header file for TITAN message to ASN.1 PER message codec.
IVIMPDUCodec
Definition: IVIMCodec.hh:13
Params.hh
Header file for the parameter dictionary.
IVIMPDUCodec::decode
virtual int decode(const BITSTRING &data, IVIM__PDU__Descriptions::IVIM &)
Decode ASN.1 PER message into TITAN message.
Definition: IVIMCodec.cc:40
Codec
Declare TITAN class.
Definition: Codec.hh:25
per_code
Declare asn1c class.
Definition: per_code.hh:27
IVIMCodec::IVIMCodec
IVIMCodec()
Definition: IVIMCodec.hh:26
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
IVIMCodec::asnCodec
IVIMPDUCodec asnCodec
Definition: IVIMCodec.hh:23
IVIMPDUCodec::encode
virtual int encode(const IVIM__PDU__Descriptions::IVIM &ivim, BITSTRING &data)
Encode TITAN message into ASN.1 PER message.
Definition: IVIMCodec.cc:35
Codec.hh
Header file for ITS abstract codec definition.
IVIMCodec::~IVIMCodec
virtual ~IVIMCodec()
Definition: IVIMCodec.hh:27
IVIMCodec
Definition: IVIMCodec.hh:21