Skip to content
BTPLayer.hh 689 B
Newer Older
filatov's avatar
filatov committed
#ifndef BTP_LAYER_H
#define BTP_LAYER_H
garciay's avatar
garciay committed

#include "Layer.hh"
#include "BTPCodec.hh"
filatov's avatar
filatov committed

namespace LibItsBtp__TestSystem {
garciay's avatar
garciay committed
  class BtpPort;
  class BtpReq;
  class BtpInd;

class BTPLayer : public TLayer<LibItsBtp__TestSystem::BtpPort> {
garciay's avatar
garciay committed
  Params _params;
  BTPCodec _codec;
public:
garciay's avatar
garciay committed
  BTPLayer() : TLayer<LibItsBtp__TestSystem::BtpPort>(), _params(), _codec() {};
garciay's avatar
garciay committed
  BTPLayer(const std::string & p_type, const std::string & param);
garciay's avatar
garciay committed
  virtual ~BTPLayer() {};
garciay's avatar
garciay committed
  void sendMsg(const LibItsBtp__TestSystem::BtpReq&, Params& param);
garciay's avatar
garciay committed
  virtual void sendData(OCTETSTRING& data, Params& params);
  virtual void receiveData(OCTETSTRING& data, Params& info);