TMEGeneratorFactory Class Reference

#include <TMEGeneratorFactory.h>

Inheritance diagram for TMEGeneratorFactory:
TemplateFactory< TVMuonEventGenerator, TMEGeneratorOptions >

List of all members.

Public Types

typedef TVMuonEventGenerator *(* ModuleMaker )(TMEGeneratorOptions *)
typedef std::vector< std::string > ArgumentsVector

Public Member Functions

void registerModule (const std::string &, ModuleMaker, const std::string &out="")
 Add a ModuleMaker function to the list of makers.
virtual TVMuonEventGeneratorcreateModule (const std::string &, TMEGeneratorOptions *opts=NULL)
 Create a module with options.
bool canCreate (const std::string &name) const
 Check if a module with this name has been registered.
void addOptions (const std::string &name, TMEGeneratorOptions *opts)
void addArguments (const std::string &all_args)
void addArgument (const std::string &module, const std::string &argument)
void addArgument (const std::string &argument)
std::string GetArgumentName (const std::string &module, const int &argument)
std::string GetProduct (const std::string &module)
void SetDebug (bool debug=true)
void PrintPossibleModules () const

Static Public Member Functions

static TMEGeneratorFactoryInstance ()

Private Member Functions

 TMEGeneratorFactory ()
 ~TMEGeneratorFactory ()

Detailed Description

Definition at line 8 of file TMEGeneratorFactory.h.


Member Typedef Documentation

typedef std::vector<std::string> TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::ArgumentsVector [inherited]

Definition at line 18 of file TemplateFactory.h.

Definition at line 17 of file TemplateFactory.h.


Constructor & Destructor Documentation

TMEGeneratorFactory::TMEGeneratorFactory (  )  [inline, private]

Definition at line 10 of file TMEGeneratorFactory.h.

Referenced by Instance().

TMEGeneratorFactory::~TMEGeneratorFactory (  )  [inline, private]

Definition at line 12 of file TMEGeneratorFactory.h.

00012 {};


Member Function Documentation

void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::addArgument ( const std::string &  argument  )  [inherited]
void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::addArgument ( const std::string &  module,
const std::string &  argument 
) [inherited]
void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::addArguments ( const std::string &  all_args  )  [inherited]
void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::addOptions ( const std::string &  name,
TMEGeneratorOptions opts 
) [inherited]
bool TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::canCreate ( const std::string &  name  )  const [inline, inherited]

Check if a module with this name has been registered.

Definition at line 44 of file TemplateFactory.h.

00044 {return (bool) fModules.count(name);};

virtual TVMuonEventGenerator * TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::createModule ( const std::string &  ,
TMEGeneratorOptions opts = NULL 
) [virtual, inherited]

Create a module with options.

std::string TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::GetArgumentName ( const std::string &  module,
const int &  argument 
) [inherited]
std::string TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::GetProduct ( const std::string &  module  )  [inherited]
TMEGeneratorFactory * TMEGeneratorFactory::Instance (  )  [inline, static]

Definition at line 18 of file TMEGeneratorFactory.h.

References TMEGeneratorFactory().

Referenced by MakeMuonEvents::BeforeFirstEntry().

00018                                                          {
00019     static TMEGeneratorFactory* instance=NULL;
00020     if(!instance) {
00021         instance=new TMEGeneratorFactory();
00022     }
00023     return instance;
00024 }

void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::PrintPossibleModules (  )  const [inherited]
void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::registerModule ( const std::string &  ,
ModuleMaker  ,
const std::string &  out = "" 
) [inherited]

Add a ModuleMaker function to the list of makers.

void TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::SetDebug ( bool  debug = true  )  [inline, inherited]

Definition at line 53 of file TemplateFactory.h.

00053 {fDebug=debug;};


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

Generated on 15 Jun 2016 for AlcapDAQ by  doxygen 1.6.1