Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtModel.cpp
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | |||||
void EvtModel::storeCommand( std::string cmd, std::string cnfgstr ) | void EvtModel::storeCommand( std::string cmd, std::string cnfgstr ) | ||||
{ | { | ||||
EvtDecayBase* model = nullptr; | EvtDecayBase* model = nullptr; | ||||
if ( _commandNameHash.find( cmd ) != _commandNameHash.end() ) { | if ( _commandNameHash.find( cmd ) != _commandNameHash.end() ) { | ||||
model = _commandNameHash[cmd]; | model = _commandNameHash[cmd]; | ||||
} | } | ||||
assert( model != 0 ); | assert( model != nullptr ); | ||||
model->command( cnfgstr ); | model->command( cnfgstr ); | ||||
} | } |