#ifndef EtsiTs103097CODEC_DATA_H
#define EtsiTs103097CODEC_DATA_H

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

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

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

class EtsiTs103097Codec_Data : public Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>
{
  //  EtsiTs103097PDUCodec asnCodec;

public:
  // explicit EtsiTs103097Codec_Data() : Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>(), asnCodec() { };
  explicit EtsiTs103097Codec_Data() : Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>() { };
  virtual ~EtsiTs103097Codec_Data() { };

  virtual int encode (const IEEE1609dot2::Ieee1609Dot2Data& p_ieee1609Dot2Data, OCTETSTRING& p_data);
  virtual int decode (const OCTETSTRING& p_data, IEEE1609dot2::Ieee1609Dot2Data& p_ieee1609Dot2Data, Params* params = NULL);
};

#endif
