ETSI STF525 / Internal Testing test suite
This project provides an internal testing test suite and its associated Test Adapter/Codec
|
Forward declaration of TITAN class. More...
#include <Layer.hh>
Public Member Functions | |
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... | |
virtual void | sendData (OCTETSTRING &p_data, Params &p_params) |
Send bytes formated data to the lower layers. More... | |
virtual void | receiveData (OCTETSTRING &p_data, Params &p_params) |
Receive bytes formated data from the lower layers. More... | |
const std::string & | to_string () const |
Remove the specified upper layer protocol from the list of the upper layer. More... | |
Protected Member Functions | |
void | toAllLayers (std::vector< Layer *> &layers, OCTETSTRING &data, Params ¶ms) |
void | receiveToAllLayers (OCTETSTRING &data, Params ¶ms) |
void | sendToAllLayers (OCTETSTRING &data, Params ¶ms) |
Protected Attributes | |
std::string | type |
List of the lower protocol layers. More... | |
Private Attributes | |
std::vector< Layer * > | upperLayers |
std::vector< Layer * > | lowerLayers |
List of the upper protocol layers. More... | |
Forward declaration of TITAN class.
This class provides basic description of an ITS protocol layer
|
inlineexplicit |
|
inlineexplicit |
Specialized constructor Create a new instance of the Layer class with its type description.
|
inlinevirtual |
Default destructor.
|
inline |
Add a new layer in the list of the upper layer.
[in] | p_layer | The layer protocol to be removed |
|
inline |
Delete this layer.
|
inlinevirtual |
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 in geonetworking_layer, commsignia_layer, udp_layer, raw_socket_layer, cam_layer, denm_layer, http_layer, btp_layer, pcap_layer, tcp_layer, ethernet_layer, UpperTesterDenmLayer, MapemSpatemLayer, SremSsemLayer, IVIMLayer, UpperTesterCamLayer, UpperTesterGnLayer, UpperTesterIvimLayer, UpperTesterSremSsemLayer, and UpperTesterMapemSpatemLayer.
|
inlineprotected |
|
inline |
Remove the specified upper layer protocol from the list of the upper layer.
[in] | p_layer | The layer protocol to be removed |
|
inlinevirtual |
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 in geonetworking_layer, commsignia_layer, udp_layer, raw_socket_layer, cam_layer, denm_layer, http_layer, btp_layer, pcap_layer, tcp_layer, ethernet_layer, UpperTesterDenmLayer, MapemSpatemLayer, SremSsemLayer, IVIMLayer, UpperTesterCamLayer, UpperTesterGnLayer, UpperTesterIvimLayer, UpperTesterSremSsemLayer, and UpperTesterMapemSpatemLayer.
|
inlineprotected |
|
inline |
Remove the specified upper layer protocol from the list of the upper layer.
[in] | The | layer protocol to be removed |
|
inlineprotected |
|
private |
List of the upper protocol layers.
|
protected |
List of the lower protocol layers.
|
private |