UpperTesterMapemSpatemCodec.hh
Go to the documentation of this file.
#ifndef UPPERTESTERMAPEMSPATEMCODEC_H
#define UPPERTESTERMAPEMSPATEMCODEC_H
#include <memory>
#include "Codec.hh"
#include "Params.hh"
class Base_Type;
class Record_Type;
class TTCN_Typedescriptor_t;
class TTCN_Buffer;
namespace LibItsMapemSpatem__TypesAndValues {
class UtMapemSpatemResults;
class UtMapemEventInd;
class UtSpatemEventInd;
}
class UpperTesterMapemSpatemCodec: public Codec <
Record_Type,
Record_Type>
{
const unsigned char c_utMapemSpatemInitialize = 0x00;
const unsigned char c_utMapemSpatemInitializeResult = 0x01;
const unsigned char c_utMapemSpatemTrigger = 0xAB;
const unsigned char c_utMapemSpatemTriggerResult = 0xAC;
const unsigned char c_utMapemEventInd = 0xAF;
const unsigned char c_utSpatemEventInd = 0xB0;
int encode_ (const Base_Type& type, const TTCN_Typedescriptor_t& field_descriptor, TTCN_Buffer& encoding_buffer);
public:
UpperTesterMapemSpatemCodec() : Codec<Record_Type, Record_Type>() { };
virtual ~UpperTesterMapemSpatemCodec() { };
virtual int encode (const Record_Type&, OCTETSTRING& data);
virtual int decode (const OCTETSTRING& data, Record_Type&, Params* params = NULL);
std::unique_ptr<Base_Type> decode (const OCTETSTRING& data, Params* params = NULL);
private:
int decode (const OCTETSTRING& data, LibItsMapemSpatem__TypesAndValues::UtMapemSpatemResults& msg, Params* params = NULL);
int decode (const OCTETSTRING& data, LibItsMapemSpatem__TypesAndValues::UtMapemEventInd& msg, Params* params = NULL);
int decode (const OCTETSTRING& data, LibItsMapemSpatem__TypesAndValues::UtSpatemEventInd& msg, Params* params = NULL);
};
#endif
LibItsMapemSpatem__TypesAndValues
Definition: UpperTesterMapemSpatemCodec.hh:14
UpperTesterMapemSpatemCodec::~UpperTesterMapemSpatemCodec
virtual ~UpperTesterMapemSpatemCodec()
Definition: UpperTesterMapemSpatemCodec.hh:35
Params.hh
Header file for the parameter dictionary.
Codec
Declare TITAN class.
Definition: Codec.hh:25
UpperTesterMapemSpatemCodec::UpperTesterMapemSpatemCodec
UpperTesterMapemSpatemCodec()
Definition: UpperTesterMapemSpatemCodec.hh:34
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
Codec.hh
Header file for ITS abstract codec definition.
UpperTesterMapemSpatemCodec
Definition: UpperTesterMapemSpatemCodec.hh:20