IVIMCodec.hh
Go to the documentation of this file.
#ifndef IVIMCODEC_H
#define IVIMCODEC_H
#include "Codec.hh"
#include "per_code.hh"
#include "Params.hh"
#include "LibItsIvim_TestSystem.hh"
//class BITSTRING;
//class OCTETSTRING;
//class IVIM__PDU__Descriptions::IVIM;
class IVIMPDUCodec : public per_code <IVIM__PDU__Descriptions::IVIM>
{
public:
explicit IVIMPDUCodec() { };
virtual int encode (const IVIM__PDU__Descriptions::IVIM& ivim, BITSTRING& data);
virtual int decode (const BITSTRING& data, IVIM__PDU__Descriptions::IVIM&);
};
class IVIMCodec : public Codec<IVIM__PDU__Descriptions::IVIM, IVIM__PDU__Descriptions::IVIM>
{
IVIMPDUCodec asnCodec;
public:
explicit IVIMCodec() : Codec<IVIM__PDU__Descriptions::IVIM, IVIM__PDU__Descriptions::IVIM>(), asnCodec() { };
virtual ~IVIMCodec() { };
virtual int encode (const IVIM__PDU__Descriptions::IVIM& ivim, OCTETSTRING& data);
virtual int decode (const OCTETSTRING& data, IVIM__PDU__Descriptions::IVIM&, Params* params = NULL);
};
#endif
IVIMPDUCodec::IVIMPDUCodec
IVIMPDUCodec()
Definition: IVIMCodec.hh:16
per_code.hh
Header file for TITAN message to ASN.1 PER message codec.
IVIMPDUCodec
Definition: IVIMCodec.hh:13
Params.hh
Header file for the parameter dictionary.
IVIMPDUCodec::decode
virtual int decode(const BITSTRING &data, IVIM__PDU__Descriptions::IVIM &)
Decode ASN.1 PER message into TITAN message.
Definition: IVIMCodec.cc:40
Codec
Declare TITAN class.
Definition: Codec.hh:25
per_code
Declare asn1c class.
Definition: per_code.hh:27
IVIMCodec::IVIMCodec
IVIMCodec()
Definition: IVIMCodec.hh:26
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
IVIMCodec::asnCodec
IVIMPDUCodec asnCodec
Definition: IVIMCodec.hh:23
IVIMPDUCodec::encode
virtual int encode(const IVIM__PDU__Descriptions::IVIM &ivim, BITSTRING &data)
Encode TITAN message into ASN.1 PER message.
Definition: IVIMCodec.cc:35
Codec.hh
Header file for ITS abstract codec definition.
IVIMCodec::~IVIMCodec
virtual ~IVIMCodec()
Definition: IVIMCodec.hh:27
IVIMCodec
Definition: IVIMCodec.hh:21