CAMLayer.hh 690 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef CAM_LAYER_H
#define CAM_LAYER_H

#include "Layer.hh"
#include "CAMCodec.hh"

namespace LibItsCam__TestSystem {
  class CamPort;
  class CamReq;
  class CamInd;
}

class CAMLayer : public TLayer<LibItsCam__TestSystem::CamPort> {
  Params _params;
  CAMCodec _codec;
public:
  CAMLayer() : TLayer<LibItsCam__TestSystem::CamPort>(), _params(), _codec() {};
  CAMLayer(const std::string & p_type, const std::string & param);
  virtual ~CAMLayer() {};

  void sendMsg(const LibItsCam__TestSystem::CamReq&, Params& params);
    
  virtual void sendData(OCTETSTRING& data, Params& params);
  virtual void receiveData(OCTETSTRING& data, Params& info);
};

#endif