ETSI STF525 / Internal Testing test suite
This project provides an internal testing test suite and its associated Test Adapter/Codec
btp_layer.hh
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "t_layer.hh"
14 #include "BTPCodec.hh"
15 
16 namespace LibItsBtp__TestSystem {
17  class BtpPort;
18  class BtpReq;
19  class BtpInd;
20 }
21 
26 class btp_layer : public t_layer<LibItsBtp__TestSystem::BtpPort> {
29  bool _device_mode;
30 public:
31 
35  explicit btp_layer() : t_layer<LibItsBtp__TestSystem::BtpPort>(), _params(), _codec(), _device_mode{false} {};
42  btp_layer(const std::string& p_type, const std::string& param);
43  virtual ~btp_layer() {};
44 
51  void sendMsg(const LibItsBtp__TestSystem::BtpReq& p_btp_req, Params& p_param);
52 
60  virtual void send_data(OCTETSTRING& data, Params& params);
68  virtual void receive_data(OCTETSTRING& data, Params& info);
69 }; // End of class btp_layer
70 
Definition: BtpPort.cc:14
Params _params
Definition: btp_layer.hh:27
Definition: BTPCodec.hh:20
This class provides basic description of an ITS port protocol layer. A port protocol layer is the fin...
Definition: t_layer.hh:21
virtual ~btp_layer()
Definition: btp_layer.hh:43
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
BTPCodec _codec
Layer parameters.
Definition: btp_layer.hh:28
bool _device_mode
BTP codec.
Definition: btp_layer.hh:29
This class provides description of ITS BTP protocol layer.
Definition: btp_layer.hh:26
btp_layer()
Set to true if the BTP layer shall encapsulate the upper layer PDU.
Definition: btp_layer.hh:35
Header file for ITS abstract protocol layer definition.