Public Member Functions | Private Attributes | List of all members
prbt_hardware_support::AsyncStoTask Class Reference

An AsyncStoTask is represented by a task execution and a completion signalling. More...

#include <sto_state_machine.h>

Public Member Functions

 AsyncStoTask (const TServiceCallFunc &operation, const std::function< void()> &finished_handler)
 
void execute ()
 Execute the task. More...
 
void signalCompletion ()
 Signal completion of the task execution. More...
 

Private Attributes

std::function< void()> finished_handler_
 
TServiceCallFunc operation_
 

Detailed Description

An AsyncStoTask is represented by a task execution and a completion signalling.

The separation of task execution and the completion signalling allows the task execution to be done asynchronously. Both functions have the signature

void()

.

Definition at line 54 of file sto_state_machine.h.

Constructor & Destructor Documentation

◆ AsyncStoTask()

prbt_hardware_support::AsyncStoTask::AsyncStoTask ( const TServiceCallFunc operation,
const std::function< void()> &  finished_handler 
)
inline

Definition at line 57 of file sto_state_machine.h.

Member Function Documentation

◆ execute()

void prbt_hardware_support::AsyncStoTask::execute ( )
inline

Execute the task.

Definition at line 65 of file sto_state_machine.h.

◆ signalCompletion()

void prbt_hardware_support::AsyncStoTask::signalCompletion ( )
inline

Signal completion of the task execution.

Definition at line 76 of file sto_state_machine.h.

Member Data Documentation

◆ finished_handler_

std::function<void()> prbt_hardware_support::AsyncStoTask::finished_handler_
private

Definition at line 83 of file sto_state_machine.h.

◆ operation_

TServiceCallFunc prbt_hardware_support::AsyncStoTask::operation_
private

Definition at line 82 of file sto_state_machine.h.


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


prbt_hardware_support
Author(s):
autogenerated on Tue Feb 25 2020 03:19:31