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