ETSI STF525 / Internal Testing test suite This project provides an internal testing test suite and its associated Test Adapter/Codec

raw_socket_layer_factory.hh
Go to the documentation of this file.
1
11 #pragma once
12
13 #include "layer_stack_builder.hh"
14
15 #include "raw_socket_layer.hh"
16
21 class raw_socket_layer_factory: public layer_factory {
22 static raw_socket_layer_factory _f;
23 public:
24
29 raw_socket_layer_factory() {
30 // register factory
31 layer_stack_builder::register_layer_factory("RAW", this);
32 };
41 inline virtual layer* create_layer(const std::string& p_type, const std::string& p_param) {
42 return new raw_socket_layer(p_type, p_param);
43 };
44 }; // End of class raw_socket_layer_factory
45
layer
Forward declaration of TITAN class.
Definition: layer.hh:29
raw_socket_layer
Definition: raw_socket_layer.hh:38
layer_factory
This class provides a factory class to create layer class instances .
Definition: layer_factory.hh:25
raw_socket_layer_factory::raw_socket_layer_factory
raw_socket_layer_factory()
Reference to the unique instance of this class.
Definition: raw_socket_layer_factory.hh:29
layer_stack_builder.hh
Header file for ITS protocol stack builder.
layer_stack_builder::register_layer_factory
static void register_layer_factory(const std::string &p_type, layer_factory *p_layer_factory)
Add a new layer factory.
Definition: layer_factory.cc:16
raw_socket_layer.hh
Header file for ITS UDP/IP protocol layer factory.
raw_socket_layer_factory::_f
static raw_socket_layer_factory _f
Definition: raw_socket_layer_factory.hh:22
raw_socket_layer_factory
This class provides a factory class to create an raw_socket_layer class instance. ...
Definition: raw_socket_layer_factory.hh:21
raw_socket_layer_factory::create_layer
virtual layer * create_layer(const std::string &p_type, const std::string &p_param)
Create the layers stack based on the provided layers stack description.
Definition: raw_socket_layer_factory.hh:41