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

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