10 #include <Atoms/Globals.h>
11 #include <Atoms/StateMachine.h>
66 void registerLoaderCallback(std::function<
StateMachine(
const char*)>& callback);
82 typedef std::map<std::string, AtomsPtr<StateMachine>> StateMachineMap;
84 StateMachineMap m_stateMachineMap;
86 std::function<
StateMachine(
const char*)> m_loaderCallback;
88 mutable std::mutex m_mutex;
State machine.
Definition: StateMachine.h:27
Container for all state machines.
Definition: StateMachines.h:21
void removeStateMachine(const std::string &name)
Removes a state machine from the map.
std::vector< std::string > stateMachineNames()
Gets all state machines names.
unsigned int numStateMachines()
Gets the number fo state machines.
void addStateMachine(const std::string &name, const StateMachine &stateMachine, bool replace=true)
Add a state machine to the map.
static StateMachines & instance()
Singleton access.
void clear()
Removes all state machines.
bool stateMachineExists(const std::string &name)
Checks if a state machine exists.
AtomsPtr< StateMachine > stateMachine(const std::string &typeName)
Gets a state machine by name.
Atoms namespace.
Definition: Agent.h:29