|
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 | delete_layer () |
| Delete this layer. More... | |
| void | add_upper_layer (layer *p_layer) |
| Add a new layer in the list of the upper layer. More... | |
| void | remove_upper_layer (layer *p_layer) |
| Remove the specified upper layer protocol from the list of the upper layer. More... | |
| virtual void | send_data (OCTETSTRING &p_data, Params &p_params) |
| Send bytes formated data to the lower layers. More... | |
| virtual void | receive_data (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 | to_all_layers (std::vector< layer *> &layers, OCTETSTRING &data, Params ¶ms) |
| void | receive_to_all_layers (OCTETSTRING &data, Params ¶ms) |
| void | send_to_all_layers (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 |
Type description, it indicates the protocol type (e.g. CAM, DENM, GN, ETH, PCAP...)
Default constructor Create a new instance of the layer class
|
inlineexplicit |
Specialized constructor Create a new instance of the layer class with its type description.
| [in] | p_type | The port type name (e.g. GN for the GeoNetworking layer) |
|
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 |
|
inlineprotected |
|
inline |
Remove the specified upper layer protocol from the list of the upper layer.
| [in] | The | layer protocol to be removed |
|
private |
List of the upper protocol layers.
|
protected |
List of the lower protocol layers.
|
private |
1.8.13