ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
Async operation to await Data Acquisition state. More...
#include <awaitState.hpp>
Public Types | |
using | ResultType = ::daq::Result< Status > |
Public Member Functions | |
AwaitStateAsync (boost::asio::io_context &io_ctx, std::shared_ptr< ObservableStatus > status, State state, std::chrono::milliseconds timeout, log4cplus::Logger const &logger) | |
Constructs operation with the privided parameters. More... | |
boost::future< ResultType > | Initiate () |
Initiates operation that await state. More... | |
void | Abort () noexcept |
Aborts the operation and completes the operation with DaqOperationAborted. More... | |
Async operation to await Data Acquisition state.
Satisfies concept requirements for op::InitiateAbortableOperation and op::InitiateOperation.
Definition at line 32 of file awaitState.hpp.
Definition at line 34 of file awaitState.hpp.
|
explicit |
Constructs operation with the privided parameters.
io_ctx | ASIO context. |
status | DAQ status to monitor/observe changes on. |
state | Target state. |
timeout | Operation timeout. |
Definition at line 18 of file awaitState.cpp.
|
noexcept |
Aborts the operation and completes the operation with DaqOperationAborted.
Definition at line 92 of file awaitState.cpp.
boost::future< AwaitStateAsync::ResultType > daq::op::AwaitStateAsync::Initiate | ( | ) |
Initiates operation that await state.
Definition at line 33 of file awaitState.cpp.