16#ifndef YASMIN__CB_STATE_HPP
17#define YASMIN__CB_STATE_HPP
40 std::string (*
callback)(std::shared_ptr<blackboard::Blackboard> blackboard);
54 std::shared_ptr<blackboard::Blackboard> blackboard));
70 execute(std::shared_ptr<blackboard::Blackboard> blackboard)
override;
Represents a state that executes a callback function.
Definition cb_state.hpp:36
std::string execute(std::shared_ptr< blackboard::Blackboard > blackboard) override
Executes the callback function.
Definition cb_state.cpp:30
CbState(std::set< std::string > outcomes, std::string(*callback)(std::shared_ptr< blackboard::Blackboard > blackboard))
Constructs a CbState object.
Definition cb_state.cpp:20
std::string(* callback)(std::shared_ptr< blackboard::Blackboard > blackboard)
Pointer to the callback function to be executed.
Definition cb_state.hpp:40
Represents a state in a state machine.
Definition state.hpp:42
std::set< std::string > outcomes
The possible outcomes of this state.
Definition state.hpp:46
Definition blackboard.hpp:29