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> {
27 Params _params;
28 BTPCodec _codec;
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
LibItsBtp__TestSystem
Definition: BtpPort.cc:14
btp_layer::_params
Params _params
Definition: btp_layer.hh:27
BTPCodec
Definition: BTPCodec.hh:20
t_layer
This class provides basic description of an ITS port protocol layer. A port protocol layer is the fin...
Definition: t_layer.hh:21
btp_layer::~btp_layer
virtual ~btp_layer()
Definition: btp_layer.hh:43
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
btp_layer::_codec
BTPCodec _codec
Layer parameters.
Definition: btp_layer.hh:28
btp_layer::_device_mode
bool _device_mode
BTP codec.
Definition: btp_layer.hh:29
BTPCodec.hh
btp_layer
This class provides description of ITS BTP protocol layer.
Definition: btp_layer.hh:26
btp_layer::btp_layer
btp_layer()
Set to true if the BTP layer shall encapsulate the upper layer PDU.
Definition: btp_layer.hh:35
t_layer.hh
Header file for ITS abstract protocol layer definition.