hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProcessorFactory Class Reference

#include <ProcessorFactory.h>

Classes

struct  ProcessorInfo
 Processor info container to hold classname, class type and maker. More...
 

Public Member Functions

void registerProcessor (const std::string &classname, ProcessorMaker *maker)
 Register the event processor.
 
ProcessorcreateProcessor (const std::string &classname, const std::string &module_instance_name, Process &process)
 Make an event processor.
 
void loadLibrary (const std::string &libname)
 Load a library.
 

Static Public Member Functions

static ProcessorFactoryinstance ()
 Get the factory instance.
 

Private Member Functions

 ProcessorFactory ()
 

Private Attributes

std::map< std::string, ProcessorInfomodule_info_
 
std::set< std::string > libs_loaded_
 

Detailed Description

Definition at line 22 of file ProcessorFactory.h.

Constructor & Destructor Documentation

◆ ProcessorFactory()

ProcessorFactory ( )
inlineprivate

Constructor

Definition at line 71 of file ProcessorFactory.h.

Member Function Documentation

◆ createProcessor()

Processor * createProcessor ( const std::string &  classname,
const std::string &  module_instance_name,
Process process 
)

Make an event processor.

Parameters
classnameClass name of event processor.
module_instance_name
Todo:
add description.
Parameters
processThe process type to create.

Definition at line 33 of file ProcessorFactory.cxx.

◆ instance()

static ProcessorFactory & instance ( )
inlinestatic

Get the factory instance.

Returns
The factory.

Factory for creating the Processor object.

Definition at line 30 of file ProcessorFactory.h.

◆ loadLibrary()

void loadLibrary ( const std::string &  libname)

Load a library.

Parameters
libnameThe library to load.

Definition at line 41 of file ProcessorFactory.cxx.

◆ registerProcessor()

void registerProcessor ( const std::string &  classname,
ProcessorMaker maker 
)

Register the event processor.

Parameters
classnameThe name of the class associated with processor.
makerTODO.

Definition at line 12 of file ProcessorFactory.cxx.

Member Data Documentation

◆ libs_loaded_

std::set<std::string> libs_loaded_
private

A set of names of loaded libraries.

Definition at line 86 of file ProcessorFactory.h.

◆ module_info_

std::map<std::string, ProcessorInfo> module_info_
private

A map of names to processor containers.

Definition at line 83 of file ProcessorFactory.h.


The documentation for this class was generated from the following files: