CAMCodec.hh
Go to the documentation of this file.
#ifndef CAMCODEC_H
#define CAMCODEC_H
#include "Codec.hh"
#include "per_code.hh"
#include "Params.hh"
class BITSTRING;
class OCTETSTRING;
namespace CAM__PDU__Descriptions {
class CAM;
}
class CAMPDUCodec : public per_code <CAM__PDU__Descriptions::CAM>
{
public:
explicit CAMPDUCodec() { };
virtual int encode (const CAM__PDU__Descriptions::CAM& cam, BITSTRING& data);
virtual int decode (const BITSTRING& data, CAM__PDU__Descriptions::CAM&);
};
class CAMCodec : public Codec<CAM__PDU__Descriptions::CAM, CAM__PDU__Descriptions::CAM>
{
CAMPDUCodec asnCodec;
public:
explicit CAMCodec() : Codec<CAM__PDU__Descriptions::CAM, CAM__PDU__Descriptions::CAM>(), asnCodec() { };
virtual ~CAMCodec() { };
virtual int encode (const CAM__PDU__Descriptions::CAM& cam, OCTETSTRING& data);
virtual int decode (const OCTETSTRING& data, CAM__PDU__Descriptions::CAM&, Params* params = NULL);
};
#endif
per_code.hh
Header file for TITAN message to ASN.1 PER message codec.
Params.hh
Header file for the parameter dictionary.
CAM__PDU__Descriptions
Forward declaration of TITAN class.
Definition: CAMCodec.hh:11
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
CAMPDUCodec::CAMPDUCodec
CAMPDUCodec()
Definition: CAMCodec.hh:18
CAMCodec::asnCodec
CAMPDUCodec asnCodec
Definition: CAMCodec.hh:25
CAMCodec
Definition: CAMCodec.hh:23
Codec.hh
Header file for ITS abstract codec definition.
CAMCodec::CAMCodec
CAMCodec()
Definition: CAMCodec.hh:28
CAMPDUCodec
Definition: CAMCodec.hh:15
CAMCodec::~CAMCodec
virtual ~CAMCodec()
Definition: CAMCodec.hh:29