#include <TMEGeneratorFactory.h>
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 TVMuonEventGenerator * | createModule (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 TMEGeneratorFactory * | Instance () |
Private Member Functions | |
TMEGeneratorFactory () | |
~TMEGeneratorFactory () |
Definition at line 8 of file TMEGeneratorFactory.h.
typedef std::vector<std::string> TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::ArgumentsVector [inherited] |
Definition at line 18 of file TemplateFactory.h.
typedef TVMuonEventGenerator *(* TemplateFactory< TVMuonEventGenerator , TMEGeneratorOptions >::ModuleMaker)(TMEGeneratorOptions *) [inherited] |
Definition at line 17 of file TemplateFactory.h.
TMEGeneratorFactory::TMEGeneratorFactory | ( | ) | [inline, private] |
Definition at line 10 of file TMEGeneratorFactory.h.
Referenced by Instance().
00010 : 00011 TemplateFactory<TVMuonEventGenerator,TMEGeneratorOptions>("TMEGeneratorFactory"){}; ~TMEGeneratorFactory(){};
TMEGeneratorFactory::~TMEGeneratorFactory | ( | ) | [inline, private] |
Definition at line 12 of file TMEGeneratorFactory.h.
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;};