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

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