#ifndef UpperTesterMapemSpatem_LAYER_H
#define UpperTesterMapemSpatem_LAYER_H

#include "t_layer.hh"
#include "UpperTesterMapemSpatemCodec.hh"

namespace LibItsMapemSpatem__TestSystem {
  class UpperTesterPort;
}

namespace LibItsMapemSpatem__TypesAndValues {
  class UtMapemSpatemInitialize;
  class UtMapemSpatemChangePosition;
  class UtMapemSpatemTrigger;
}

class UpperTesterMapemSpatemLayer : public t_layer<LibItsMapemSpatem__TestSystem::UpperTesterPort> {
  params _params;
  UpperTesterMapemSpatemCodec _codec;
  
public:
  UpperTesterMapemSpatemLayer() : t_layer<LibItsMapemSpatem__TestSystem::UpperTesterPort>(), _params(), _codec() {};
  UpperTesterMapemSpatemLayer(const std::string & p_type, const std::string & param);
  virtual ~UpperTesterMapemSpatemLayer() {};

  void sendMsg(const LibItsMapemSpatem__TypesAndValues::UtMapemSpatemInitialize& send_par, params& p_params);
  void sendMsg(const LibItsMapemSpatem__TypesAndValues::UtMapemSpatemTrigger& send_par, params& p_params);
  
  virtual void send_data(OCTETSTRING& data, params& p_params);
  virtual void receive_data(OCTETSTRING& data, params& info);
};

#endif
