ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
daq::OcmAsyncOperations Struct Reference

OCM Async operations. More...

#include <daqController.hpp>

Public Types

using AwaitReturnType = std::pair< boost::future< Result< DpParts > >, std::function< bool()> >
 

Public Member Functions

 OcmAsyncOperations (rad::IoExecutor &executor)
 Default constructs object with standard async operations.
 
 OcmAsyncOperations (OcmAsyncOperations &&)=default
 
 OcmAsyncOperations (OcmAsyncOperations const &)=default
 
OcmAsyncOperationsoperator= (OcmAsyncOperations &&)=default
 
OcmAsyncOperationsoperator= (OcmAsyncOperations const &)=default
 
bool IsValid () const noexcept
 

Public Attributes

std::reference_wrapper< rad::IoExecutorexecutor
 
std::function< boost::future< void >(op::AsyncOpParams)> start
 
std::function< boost::future< Result< void > >(ErrorPolicy, op::AsyncOpParams)> abort
 
std::function< boost::future< Result< DpParts > >(ErrorPolicy, op::AsyncOpParams)> stop
 
std::function< AwaitReturnType(op::AwaitOpParams)> await_prim
 

Detailed Description

OCM Async operations.

Definition at line 51 of file daqController.hpp.

Member Typedef Documentation

◆ AwaitReturnType

using daq::OcmAsyncOperations::AwaitReturnType = std::pair<boost::future<Result<DpParts> >, std::function<bool()> >

Definition at line 53 of file daqController.hpp.

Constructor & Destructor Documentation

◆ OcmAsyncOperations() [1/3]

daq::OcmAsyncOperations::OcmAsyncOperations ( rad::IoExecutor executor)

Default constructs object with standard async operations.

Definition at line 66 of file daqController.cpp.

◆ OcmAsyncOperations() [2/3]

daq::OcmAsyncOperations::OcmAsyncOperations ( OcmAsyncOperations &&  )
default

◆ OcmAsyncOperations() [3/3]

daq::OcmAsyncOperations::OcmAsyncOperations ( OcmAsyncOperations const &  )
default

Member Function Documentation

◆ IsValid()

bool daq::OcmAsyncOperations::IsValid ( ) const
noexcept

Definition at line 82 of file daqController.cpp.

◆ operator=() [1/2]

OcmAsyncOperations & daq::OcmAsyncOperations::operator= ( OcmAsyncOperations &&  )
default

◆ operator=() [2/2]

OcmAsyncOperations & daq::OcmAsyncOperations::operator= ( OcmAsyncOperations const &  )
default

Member Data Documentation

◆ abort

std::function<boost::future<Result<void> >(ErrorPolicy, op::AsyncOpParams)> daq::OcmAsyncOperations::abort

Definition at line 69 of file daqController.hpp.

◆ await_prim

std::function<AwaitReturnType(op::AwaitOpParams)> daq::OcmAsyncOperations::await_prim

Definition at line 71 of file daqController.hpp.

◆ executor

std::reference_wrapper<rad::IoExecutor> daq::OcmAsyncOperations::executor

Definition at line 66 of file daqController.hpp.

◆ start

std::function<boost::future<void>(op::AsyncOpParams)> daq::OcmAsyncOperations::start

Definition at line 68 of file daqController.hpp.

◆ stop

std::function<boost::future<Result<DpParts> >(ErrorPolicy, op::AsyncOpParams)> daq::OcmAsyncOperations::stop

Definition at line 70 of file daqController.hpp.


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