ETSI STF525 / Internal Testing test suite
This project provides an internal testing test suite and its associated Test Adapter/Codec
tcp_layer_factory.hh
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include "layer_stack_builder.hh"
14 
15 #include "tcp_layer.hh"
16 
23 public:
24 
30  // Register factory
32  };
40  inline virtual layer* create_layer(const std::string& p_type, const std::string& p_param){
41  return new tcp_layer(p_type, p_param);
42  };
43 }; // End of class tcp_layer_factory
44 
Forward declaration of TITAN class.
Definition: tcp_layer.hh:23
Forward declaration of TITAN class.
Definition: layer.hh:29
Header file for ITS TCP socket based protocol port layer.
This class provides a factory class to create layer class instances .
Definition: layer_factory.hh:25
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: tcp_layer_factory.hh:40
tcp_layer_factory()
Reference to the unique instance of this class.
Definition: tcp_layer_factory.hh:29
static tcp_layer_factory _f
Definition: tcp_layer_factory.hh:22
This class provides a factory class to create an tcp_layer class instance.
Definition: tcp_layer_factory.hh:21
Header file for ITS protocol stack builder.
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