49 if ( _modelNameHash.find(model_name)!=_modelNameHash.end() ) {
50 model=_modelNameHash[model_name];
54 report(
ERROR,
"EvtGen") <<
"Did not find the right model:"
55 <<model_name.c_str()<<
"\n";
59 return model->
clone();
66 std::string modelName;
69 _modelNameHash[modelName]=prototype;
77 _commandNameHash[commandName]=prototype;
85 if ( _modelNameHash.find(model_name)!=_modelNameHash.end() ) {
94 if ( _commandNameHash.find(cmd)!=_commandNameHash.end() ) {
103 if ( _commandNameHash.find(cmd)!=_commandNameHash.end() ) {
104 model=_commandNameHash[cmd];
ostream & report(Severity severity, const char *facility)
virtual EvtDecayBase * clone()=0
virtual void getName(std::string &name)=0
virtual void command(std::string cmd)
virtual std::string commandName()
EvtDecayBase * getFcn(std::string model_name)
void storeCommand(std::string cmd, std::string cnfgstr)
void Register(EvtDecayBase *prototype)
int isModel(std::string name)
int isCommand(std::string cmd)