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

EtsiTs103097Codec_Certificate.hh
Go to the documentation of this file.
1 #ifndef EtsiTs103097CODEC_CERT_H
2 #define EtsiTs103097CODEC_CERT_H
3
4 #include "Codec.hh"
5 //#include "CodecOer.hh"
6 #include "Params.hh"
7
8 #include "EtsiTs103097Module.hh"
9 //class BITSTRING;
10 //class OCTETSTRING;
11 //class IEEE1609dot2::CertificateBase;
12
13 // class EtsiTs103097PDUCodec// : public OERCodec <IEEE1609dot2::CertificateBase>
14 // {
15 // public:
16 // explicit EtsiTs103097PDUCodec() { };
17 // virtual int encode (const IEEE1609dot2::CertificateBase& p_cert, BITSTRING& data);
18 // virtual int decode (const BITSTRING& data, IEEE1609dot2::CertificateBase&);
19 // };
20
21 class EtsiTs103097Codec_Certificate : public Codec<IEEE1609dot2::CertificateBase, IEEE1609dot2::CertificateBase>
22 {
23 // EtsiTs103097PDUCodec asnCodec;
24
25 public:
26 // explicit EtsiTs103097Codec_Certificate() : Codec<IEEE1609dot2::CertificateBase, IEEE1609dot2::CertificateBase>(), asnCodec() { };
27 explicit EtsiTs103097Codec_Certificate() : Codec<IEEE1609dot2::CertificateBase, IEEE1609dot2::CertificateBase>() { };
28 virtual ~EtsiTs103097Codec_Certificate() { };
29
30 virtual int encode (const IEEE1609dot2::CertificateBase& p_cert, OCTETSTRING& p_data);
31 virtual int decode (const OCTETSTRING& p_data, IEEE1609dot2::CertificateBase& p_cert, Params* p_params = NULL);
32 };
33
34 #endif
EtsiTs103097Codec_Certificate::decode
virtual int decode(const OCTETSTRING &p_data, IEEE1609dot2::CertificateBase &p_cert, Params *p_params=NULL)
Encode typed message into an octet string format.
Definition: EtsiTs103097Codec_Certificate.cc:23
EtsiTs103097Codec_Certificate::~EtsiTs103097Codec_Certificate
virtual ~EtsiTs103097Codec_Certificate()
Definition: EtsiTs103097Codec_Certificate.hh:28
Params.hh
Header file for the parameter dictionary.
EtsiTs103097Codec_Certificate::EtsiTs103097Codec_Certificate
EtsiTs103097Codec_Certificate()
Definition: EtsiTs103097Codec_Certificate.hh:27
IEEE1609dot2
Definition: security_db_record.hh:8
Codec
Declare TITAN class.
Definition: Codec.hh:25
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
Codec.hh
Header file for ITS abstract codec definition.
EtsiTs103097Codec_Certificate::encode
virtual int encode(const IEEE1609dot2::CertificateBase &p_cert, OCTETSTRING &p_data)
Encode typed message into an octet string.
Definition: EtsiTs103097Codec_Certificate.cc:9
EtsiTs103097Codec_Certificate
Definition: EtsiTs103097Codec_Certificate.hh:21