RTC Toolkit  1.0.0
Public Types | Public Member Functions | List of all members
rtctk::componentFramework::ThreadActivity Class Reference

Class that handles state machine activities. More...

#include <threadActivity.hpp>

Inheritance diagram for rtctk::componentFramework::ThreadActivity:

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
 
ThreadActivityoperator= (const ThreadActivity &)=delete
 
void start (scxml4cpp::Context *c) override
 
void stop (scxml4cpp::Context *c) override
 

Detailed Description

Class that handles state machine activities.

Member Typedef Documentation

◆ ActivityMethod

◆ FailureMethod

using rtctk::componentFramework::ThreadActivity::FailureMethod = std::function<void(std::exception_ptr)>

◆ SuccessMethod

Constructor & Destructor Documentation

◆ ThreadActivity() [1/2]

rtctk::componentFramework::ThreadActivity::ThreadActivity ( std::string const &  id,
ActivityMethod  activity,
SuccessMethod  on_success = nullptr,
FailureMethod  on_failure = nullptr 
)

◆ ~ThreadActivity()

rtctk::componentFramework::ThreadActivity::~ThreadActivity ( )

◆ ThreadActivity() [2/2]

rtctk::componentFramework::ThreadActivity::ThreadActivity ( const ThreadActivity )
delete

Member Function Documentation

◆ operator=()

ThreadActivity& rtctk::componentFramework::ThreadActivity::operator= ( const ThreadActivity )
delete

◆ start()

void rtctk::componentFramework::ThreadActivity::start ( scxml4cpp::Context *  c)
override

◆ stop()

void rtctk::componentFramework::ThreadActivity::stop ( scxml4cpp::Context *  c)
override

The documentation for this class was generated from the following files: