|
ETSI STF525 / Internal Testing test suite
This project provides an internal testing test suite and its associated Test Adapter/Codec
|
This class provides description of ITS BTP protocol layer. More...
#include <btp_layer.hh>
Public Member Functions | |
| btp_layer () | |
| Set to true if the BTP layer shall encapsulate the upper layer PDU. More... | |
| btp_layer (const std::string &p_type, const std::string ¶m) | |
| Specialised constructor Create a new instance of the btp_layer class. More... | |
| virtual | ~btp_layer () |
| void | sendMsg (const LibItsBtp__TestSystem::BtpReq &p_btp_req, Params &p_param) |
| Send BTP message to the lower layers. More... | |
| virtual void | sendData (OCTETSTRING &data, Params ¶ms) |
| Send bytes formated data to the lower layers. More... | |
| virtual void | receiveData (OCTETSTRING &data, Params &info) |
| Receive bytes formated data from the lower layers. More... | |
Public Member Functions inherited from TLayer< LibItsBtp__TestSystem::BtpPort > | |
| TLayer () | |
| TLayer (const std::string &p_type) | |
| void | addUpperPort (LibItsBtp__TestSystem::BtpPort *p_port) |
| void | removeUpperPort (LibItsBtp__TestSystem::BtpPort *) |
Public Member Functions inherited from Layer | |
| Layer () | |
| Type description, it indicates the protocol type (e.g. CAM, DENM, GN, ETH, PCAP...) More... | |
| Layer (const std::string &p_type) | |
| Specialized constructor Create a new instance of the Layer class with its type description. More... | |
| virtual | ~Layer () |
| Default destructor. More... | |
| void | deleteLayer () |
| Delete this layer. More... | |
| void | addUpperLayer (Layer *p_layer) |
| Add a new layer in the list of the upper layer. More... | |
| void | removeUpperLayer (Layer *p_layer) |
| Remove the specified upper layer protocol from the list of the upper layer. More... | |
| const std::string & | to_string () const |
| Remove the specified upper layer protocol from the list of the upper layer. More... | |
Private Attributes | |
| Params | _params |
| BTPCodec | _codec |
| Layer parameters. More... | |
| bool | _device_mode |
| BTP codec. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TLayer< LibItsBtp__TestSystem::BtpPort > | |
| void | toAllUpperPorts (const TMessage &m, const Params ¶m) |
Protected Member Functions inherited from Layer | |
| void | toAllLayers (std::vector< Layer *> &layers, OCTETSTRING &data, Params ¶ms) |
| void | receiveToAllLayers (OCTETSTRING &data, Params ¶ms) |
| void | sendToAllLayers (OCTETSTRING &data, Params ¶ms) |
Protected Attributes inherited from Layer | |
| std::string | type |
| List of the lower protocol layers. More... | |
This class provides description of ITS BTP protocol layer.
|
inlineexplicit |
Set to true if the BTP layer shall encapsulate the upper layer PDU.
Default constructor Create a new instance of the btp_layer class
| btp_layer::btp_layer | ( | const std::string & | p_type, |
| const std::string & | param | ||
| ) |
Specialised constructor Create a new instance of the btp_layer class.
| [in] | p_type |
|
inlinevirtual |
|
virtual |
Receive bytes formated data from the lower layers.
| [in] | p_data | The bytes formated data received |
| [in] | p_params | Some lower layers parameters values when data was received |
Reimplemented from Layer.
|
virtual |
Send bytes formated data to the lower layers.
| [in] | p_data | The data to be sent |
| [in] | p_params | Some parameters to overwrite default value of the lower layers parameters |
Reimplemented from Layer.
| void btp_layer::sendMsg | ( | const LibItsBtp__TestSystem::BtpReq & | p_btp_req, |
| Params & | p_param | ||
| ) |
Send BTP message to the lower layers.
| [in] | p_btp_req | The BTP message to be sent |
| [in] | p_params | Some parameters to overwrite default value of the lower layers parameters |
|
private |
BTP codec.
|
private |
1.8.13