btp_layer.hh
Go to the documentation of this file.
#pragma once
#include "t_layer.hh"
#include "BTPCodec.hh"
namespace LibItsBtp__TestSystem {
class BtpPort;
class BtpReq;
class BtpInd;
}
class btp_layer : public t_layer<LibItsBtp__TestSystem::BtpPort> {
Params _params;
BTPCodec _codec;
bool _device_mode;
public:
explicit btp_layer() : t_layer<LibItsBtp__TestSystem::BtpPort>(), _params(), _codec(), _device_mode{false} {};
btp_layer(const std::string& p_type, const std::string& param);
virtual ~btp_layer() {};
void sendMsg(const LibItsBtp__TestSystem::BtpReq& p_btp_req, Params& p_param);
virtual void send_data(OCTETSTRING& data, Params& params);
virtual void receive_data(OCTETSTRING& data, Params& info);
}; // End of class btp_layer
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.