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