#ifndef EtsiTs103097CODEC_TBSDATA_H
#define EtsiTs103097CODEC_TBSDATA_H

#include "Codec.hh"
//#include "CodecOer.hh"
#include "Params.hh"

#include "EtsiTs103097Module.hh"
//class BITSTRING;
//class OCTETSTRING;
//class IEEE1609dot2::ToBeSignedData;

// class EtsiTs103097PDUCodec// : public OERCodec <IEEE1609dot2::ToBeSignedData>
// {
// public:
//   EtsiTs103097PDUCodec() { };
//   virtual int encode (const IEEE1609dot2::ToBeSignedData& p_cert, BITSTRING& data);
//   virtual int decode (const BITSTRING& data, IEEE1609dot2::ToBeSignedData&);
// };

class EtsiTs103097Codec_ToBeSignedData : public Codec<IEEE1609dot2::ToBeSignedData, IEEE1609dot2::ToBeSignedData>
{
  //  EtsiTs103097PDUCodec asnCodec;

public:
  // EtsiTs103097Codec_ToBeSignedData() : Codec<IEEE1609dot2::ToBeSignedData, IEEE1609dot2::ToBeSignedData>(), asnCodec() { };
  EtsiTs103097Codec_ToBeSignedData() : Codec<IEEE1609dot2::ToBeSignedData, IEEE1609dot2::ToBeSignedData>() { };
  virtual ~EtsiTs103097Codec_ToBeSignedData() { };

  virtual int encode (const IEEE1609dot2::ToBeSignedData& p_cert, OCTETSTRING& p_data);
  virtual int decode (const OCTETSTRING& p_data, IEEE1609dot2::ToBeSignedData& p_cert, Params* p_params = NULL);
};

#endif
