Classes | |
class | Tasks |
class | Context |
class | StateMachine |
class | DaqSmManager |
Functions | |
template<typename EVENT > | |
std::function< void(rad::AnyEvent const &)> | WrapAction (std::function< void(EVENT const &)> action) |
std::function< StateMachine(std::string)> | MakeStateMachineFactory (Context &ctx, std::string const &model_file, std::list< scxml4cpp::Action * > &actions, std::list< scxml4cpp::Activity * > &activities) |
std::function<StateMachine(std::string)> daq::MakeStateMachineFactory | ( | Context & | ctx, |
std::string const & | model_file, | ||
std::list< scxml4cpp::Action * > & | actions, | ||
std::list< scxml4cpp::Activity * > & | activities | ||
) |
Creates a factory function that creates StateMachines instances using the supplied arguments.
The returned factory function takes a single argument; the data acquisition id.
std::function<void(rad::AnyEvent const&)> daq::WrapAction | ( | std::function< void(EVENT const &)> | action | ) |
Wraps an action to provide the boiler plate code that checks the expected event type and if correct, casts it to that type and calls the action.