SpatemCodec.hh
Go to the documentation of this file.
#ifndef SPATEMCODEC_H
#define SPATEMCODEC_H
#include "Codec.hh"
#include "per_code.hh"
#include "Params.hh"
#include "LibItsMapemSpatem_TestSystem.hh"
class SpatemPDUCodec : public per_code <SPATEM__PDU__Descriptions::SPATEM>
{
public:
explicit SpatemPDUCodec() { };
virtual int encode (const SPATEM__PDU__Descriptions::SPATEM& spatem, BITSTRING& data);
virtual int decode (const BITSTRING& data, SPATEM__PDU__Descriptions::SPATEM&);
};
class SpatemCodec : public Codec<SPATEM__PDU__Descriptions::SPATEM, SPATEM__PDU__Descriptions::SPATEM>
{
SpatemPDUCodec asnCodec;
public:
explicit SpatemCodec() : Codec<SPATEM__PDU__Descriptions::SPATEM, SPATEM__PDU__Descriptions::SPATEM>(), asnCodec() { };
virtual ~SpatemCodec() { };
virtual int encode (const SPATEM__PDU__Descriptions::SPATEM& spatem, OCTETSTRING& data);
virtual int decode (const OCTETSTRING& data, SPATEM__PDU__Descriptions::SPATEM&, Params* params = NULL);
};
#endif
per_code.hh
Header file for TITAN message to ASN.1 PER message codec.
SpatemCodec::SpatemCodec
SpatemCodec()
Definition: SpatemCodec.hh:23
SpatemPDUCodec::SpatemPDUCodec
SpatemPDUCodec()
Definition: SpatemCodec.hh:13
Params.hh
Header file for the parameter dictionary.
Codec
Declare TITAN class.
Definition: Codec.hh:25
SpatemPDUCodec::encode
virtual int encode(const SPATEM__PDU__Descriptions::SPATEM &spatem, BITSTRING &data)
Encode TITAN message into ASN.1 PER message.
Definition: SpatemCodec.cc:35
SpatemPDUCodec
Definition: SpatemCodec.hh:10
SpatemPDUCodec::decode
virtual int decode(const BITSTRING &data, SPATEM__PDU__Descriptions::SPATEM &)
Decode ASN.1 PER message into TITAN message.
Definition: SpatemCodec.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
Codec.hh
Header file for ITS abstract codec definition.
SpatemCodec::asnCodec
SpatemPDUCodec asnCodec
Definition: SpatemCodec.hh:20
SpatemCodec
Definition: SpatemCodec.hh:18
SpatemCodec::~SpatemCodec
virtual ~SpatemCodec()
Definition: SpatemCodec.hh:24