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

UpperTesterSremSsemCodec.hh
Go to the documentation of this file.
1 #ifndef UpperTesterSremSsemCODEC_H
2 #define UpperTesterSremSsemCODEC_H
3
4 #include <memory>
5
6 #include "Codec.hh"
7 #include "Params.hh"
8
9 class Base_Type;
10 class Record_Type;
11 class TTCN_Typedescriptor_t;
12 class TTCN_Buffer;
13
14 namespace LibItsSremSsem__TypesAndValues {
15 class UtSremResults;
16 class UtSremEventInd;
17 class UtSsemEventInd;
18 }
19
20 class UpperTesterSremSsemCodec: public Codec <
21 Record_Type,
22 Record_Type>
23 {
24 const unsigned char c_utSremSsemInitialize = 0x00;
25 const unsigned char c_utSremSsemInitializeResult = 0x01;
26 const unsigned char c_utSremSsemTrigger = 0xAB;
27 const unsigned char c_utSremSsemTriggerResult = 0xAC;
28 const unsigned char c_utSremSsemUpdate = 0xAD;
29 const unsigned char c_utSremSsemUpdateResult = 0xAE;
30 const unsigned char c_utSremEventInd = 0xAF;
31 const unsigned char c_utSsemEventInd = 0xB0;
32
33 int encode_ (const Base_Type& type, const TTCN_Typedescriptor_t& field_descriptor, TTCN_Buffer& encoding_buffer);
34
35 public:
36 UpperTesterSremSsemCodec() : Codec<Record_Type, Record_Type>() { };
37 virtual ~UpperTesterSremSsemCodec() { };
38
39 virtual int encode (const Record_Type&, OCTETSTRING& data);
40 virtual int decode (const OCTETSTRING& data, Record_Type&, Params* params = NULL);
41 std::unique_ptr<Base_Type> decode (const OCTETSTRING& data, Params* params = NULL);
42
43 private:
44 int decode (const OCTETSTRING& data, LibItsSremSsem__TypesAndValues::UtSremResults& msg, Params* params = NULL);
45 int decode (const OCTETSTRING& data, LibItsSremSsem__TypesAndValues::UtSremEventInd& msg, Params* params = NULL);
46 int decode (const OCTETSTRING& data, LibItsSremSsem__TypesAndValues::UtSsemEventInd& msg, Params* params = NULL);
47 };
48 #endif
UpperTesterSremSsemCodec::~UpperTesterSremSsemCodec
virtual ~UpperTesterSremSsemCodec()
Definition: UpperTesterSremSsemCodec.hh:37
UpperTesterSremSsemCodec
Definition: UpperTesterSremSsemCodec.hh:20
Params.hh
Header file for the parameter dictionary.
UpperTesterSremSsemCodec::UpperTesterSremSsemCodec
UpperTesterSremSsemCodec()
Definition: UpperTesterSremSsemCodec.hh:36
Codec
Declare TITAN class.
Definition: Codec.hh:25
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
LibItsSremSsem__TypesAndValues
Definition: UpperTesterSremSsemCodec.hh:14
Codec.hh
Header file for ITS abstract codec definition.