SsemCodec.hh
Go to the documentation of this file.
#ifndef SSEMCODEC_H
#define SSEMCODEC_H
#include "Codec.hh"
#include "per_code.hh"
#include "Params.hh"
#include "LibItsSremSsem_TestSystem.hh"
class SsemPDUCodec : public per_code <SSEM__PDU__Descriptions::SSEM>
{
public:
SsemPDUCodec() { };
virtual int encode (const SSEM__PDU__Descriptions::SSEM& ssem, BITSTRING& data);
virtual int decode (const BITSTRING& data, SSEM__PDU__Descriptions::SSEM&);
};
class SsemCodec : public Codec<SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM>
{
SsemPDUCodec asnCodec;
public:
SsemCodec() : Codec<SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM>(), asnCodec() { };
virtual ~SsemCodec() { };
virtual int encode (const SSEM__PDU__Descriptions::SSEM& ssem, OCTETSTRING& data);
virtual int decode (const OCTETSTRING& data, SSEM__PDU__Descriptions::SSEM&, Params* params = NULL);
};
#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