UpperTesterGnFactory.hh
Go to the documentation of this file.
#pragma once
#include "layer_stack_builder.hh"
#include "UpperTesterGnLayer.hh"
class UpperTesterGnFactory : public layer_factory {
static UpperTesterGnFactory _f;
public:
UpperTesterGnFactory() {
// Register factory
layer_stack_builder::register_layer_factory("UT_GN", this);
};
inline virtual layer* create_layer(const std::string& p_type, const std::string& p_param){
return new UpperTesterGnLayer(p_type, p_param);
};
}; // End of class UpperTesterGnFactory
UpperTesterGnFactory
Definition: UpperTesterGnFactory.hh:17
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
layer_stack_builder.hh
Header file for ITS protocol stack builder.
UpperTesterGnLayer.hh
UpperTesterGnLayer
Definition: UpperTesterGnLayer.hh:18
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
UpperTesterGnFactory::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 (cf. remark) ...
Definition: UpperTesterGnFactory.hh:24
UpperTesterGnFactory::_f
static UpperTesterGnFactory _f
Definition: UpperTesterGnFactory.hh:18
UpperTesterGnFactory::UpperTesterGnFactory
UpperTesterGnFactory()
Definition: UpperTesterGnFactory.hh:20