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