ETSI STF525 / Internal Testing test suite This project provides an internal testing test suite and its associated Test Adapter/Codec

CAMCodec.hh
Go to the documentation of this file.
1 #ifndef CAMCODEC_H
2 #define CAMCODEC_H
3
4 #include "Codec.hh"
5 #include "per_code.hh"
6 #include "Params.hh"
7
8 class BITSTRING;
9 class OCTETSTRING;
10
11 namespace CAM__PDU__Descriptions {
12 class CAM;
13 }
14
15 class CAMPDUCodec : public per_code <CAM__PDU__Descriptions::CAM>
16 {
17 public:
18 explicit CAMPDUCodec() { };
19 virtual int encode (const CAM__PDU__Descriptions::CAM& cam, BITSTRING& data);
20 virtual int decode (const BITSTRING& data, CAM__PDU__Descriptions::CAM&);
21 };
22
23 class CAMCodec : public Codec<CAM__PDU__Descriptions::CAM, CAM__PDU__Descriptions::CAM>
24 {
25 CAMPDUCodec asnCodec;
26
27 public:
28 explicit CAMCodec() : Codec<CAM__PDU__Descriptions::CAM, CAM__PDU__Descriptions::CAM>(), asnCodec() { };
29 virtual ~CAMCodec() { };
30
31 virtual int encode (const CAM__PDU__Descriptions::CAM& cam, OCTETSTRING& data);
32 virtual int decode (const OCTETSTRING& data, CAM__PDU__Descriptions::CAM&, Params* params = NULL);
33 };
34
35 #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