62 <<
"UserAction " << name <<
" is not known";
77 const std::vector<std::string>&
bool IsKnownUserAction(const std::string &)
std::vector< std::string > listnames
static UserActionFactory & Instance()
A class for generating concrete UserAction derived classes based on the factory pattern. This code supplies a CPP macro which allows the classes to self-register and thus no modification of this class is needed in order to expand the list of classes it knows about.
std::map< std::string, UserActionCtorFuncPtr_t > fFunctionMap
void SetName(std::string const &name)
const std::vector< std::string > & AvailableUserActions() const
std::map< std::string, bool * > fBoolPtrMap
g4b::UserAction *(* UserActionCtorFuncPtr_t)()
static UserActionFactory * fgTheInstance
basic interface to Geant4 for ART-based software
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
virtual ~UserActionFactory()
bool RegisterCreator(std::string name, UserActionCtorFuncPtr_t ctorptr, bool *ptr)
g4b::UserAction * GetUserAction(const std::string &)