16#ifndef YASMIN__CB_STATE_HPP_
17#define YASMIN__CB_STATE_HPP_
std::shared_ptr< Blackboard > SharedPtr
Shared pointer type for Blackboard.
Definition blackboard.hpp:85
std::string execute(Blackboard::SharedPtr blackboard) override
Executes the callback function.
Definition cb_state.cpp:28
CbState(const Outcomes &outcomes, CbStateCallback callback)
Shared pointer type for CbState.
Definition cb_state.cpp:21
CbStateCallback callback
Pointer to the callback function to be executed.
Definition cb_state.hpp:40
Outcomes outcomes
The possible outcomes of this state.
Definition state.hpp:50
State(const Outcomes &outcomes)
Shared pointer type for State.
Definition state.cpp:32
Definition blackboard.hpp:31
StringSet Outcomes
Set of possible outcomes for states.
Definition types.hpp:77
std::function< std::string(std::shared_ptr< Blackboard >)> CbStateCallback
Callback function type for CbState.
Definition types.hpp:107
#define YASMIN_PTR_ALIASES(ClassName)
Macro to define all pointer aliases for a class.
Definition types.hpp:52