11 #include <Atoms/Globals.h>
12 #include <AtomsCore/Globals.h>
13 #include <Atoms/SimulationEvent.h>
53 bool registerSimulationEvent(
const std::string& eventName, creatorFn func,
unsigned int moduleType = SimulationEvent::kNative,
bool replace =
false);
101 std::map<std::string, creatorFn> m_factoryMap;
103 std::map<std::string, short> m_eventTypes;
Simiation Event.
Definition: SimulationEvent.h:22
Simulation event factory.
Definition: SimulationEvents.h:24
short eventType(const std::string &name)
Gets the event type.
static SimulationEvents & instance()
Singleton access.
bool registerSimulationEvent(const std::string &eventName, creatorFn func, unsigned int moduleType=SimulationEvent::kNative, bool replace=false)
Registers a behaviour module in the factory.
std::vector< std::string > getRegisteredSimulationEvents()
Gets all Simulation Event modules.
SimulationEvent * createSimulationEventRawPtr(const std::string &name)
Creates a SimulationEvent.
void clear()
Clears factory.
bool deregisterSimulationEvent(const std::string &name)
Deregisters a SimulationEventtype from the factory.
AtomsPtr< SimulationEvent > createSimulationEvent(const std::string &name)
Creates a SimulationEvent.
bool isRegistered(const std::string &name)
Checks if a Simulation Event is registered.
Atoms namespace.
Definition: Agent.h:29