denm_layer_factory.hh
Go to the documentation of this file.
#pragma once
#include "layer_stack_builder.hh"
#include "denm_layer.hh"
class denm_layer_factory : public layer_factory {
static denm_layer_factory _f;
public:
denm_layer_factory() {
// Register factory
layer_stack_builder::register_layer_factory("DENM", this);
};
inline virtual layer* create_layer(const std::string& p_type, const std::string& p_param){
return new denm_layer(p_type, p_param);
};
}; // End of class denm_layer_factory
denm_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: denm_layer_factory.hh:41
layer
Forward declaration of TITAN class.
Definition: layer.hh:29
layer_factory
This class provides a factory class to create layer class instances .
Definition: layer_factory.hh:25
denm_layer.hh
Header file for ITS DENM protocol layer.
layer_stack_builder.hh
Header file for ITS protocol stack builder.
denm_layer_factory::_f
static denm_layer_factory _f
Definition: denm_layer_factory.hh:22
denm_layer
This class provides description of ITS DENM protocol layer.
Definition: denm_layer.hh:26
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
denm_layer_factory
Definition: denm_layer_factory.hh:21
denm_layer_factory::denm_layer_factory
denm_layer_factory()
Reference to the unique instance of this class.
Definition: denm_layer_factory.hh:29