#ifndef EtsiTs103097CODEC_DATA_H
#define EtsiTs103097CODEC_DATA_H

#include "Codec.hh"
//#include "CodecOer.hh"
#include "loggers.hh" // TODO To be removed
#include "Params.hh"

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

// class EtsiTs103097PDUCodec// : public OERCodec <IEEE1609dot2::Ieee1609Dot2Data>
// {
// public:
//   EtsiTs103097PDUCodec() { loggers::get_instance().log("EtsiTs103097PDUCodec::EtsiTs103097PDUCodec(D)"); };
//   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:
  // EtsiTs103097Codec_Data() : Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>(), asnCodec() { loggers::get_instance().log("EtsiTs103097Codec_Data::EtsiTs103097Codec_Data(D)"); };
  EtsiTs103097Codec_Data() : Codec<IEEE1609dot2::Ieee1609Dot2Data, IEEE1609dot2::Ieee1609Dot2Data>() { loggers::get_instance().log("EtsiTs103097Codec_Data::EtsiTs103097Codec_Data(D)"); };
  virtual ~EtsiTs103097Codec_Data() { loggers::get_instance().log("EtsiTs103097Codec_Data::~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
