RTC Toolkit
2.0.0
|
Class that handles state machine activities. More...
#include <threadActivity.hpp>
Public Types | |
using | ActivityMethod = std::function< void(StopToken)> |
using | SuccessMethod = std::function< void()> |
using | FailureMethod = std::function< void(std::exception_ptr)> |
Public Member Functions | |
ThreadActivity (std::string const &id, ActivityMethod activity, SuccessMethod on_success=nullptr, FailureMethod on_failure=nullptr) | |
~ThreadActivity () | |
ThreadActivity (const ThreadActivity &)=delete | |
ThreadActivity & | operator= (const ThreadActivity &)=delete |
void | start (scxml4cpp::Context *c) override |
void | stop (scxml4cpp::Context *c) override |
Class that handles state machine activities.
using rtctk::componentFramework::ThreadActivity::ActivityMethod = std::function<void(StopToken)> |
using rtctk::componentFramework::ThreadActivity::FailureMethod = std::function<void(std::exception_ptr)> |
using rtctk::componentFramework::ThreadActivity::SuccessMethod = std::function<void()> |
rtctk::componentFramework::ThreadActivity::ThreadActivity | ( | std::string const & | id, |
ActivityMethod | activity, | ||
SuccessMethod | on_success = nullptr , |
||
FailureMethod | on_failure = nullptr |
||
) |
rtctk::componentFramework::ThreadActivity::~ThreadActivity | ( | ) |
|
delete |
|
delete |
|
override |
|
override |