ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Namespaces | Functions
initiate.hpp File Reference

Contains declarations for the helper functions to initiate operations. More...

#include "../config.hpp"
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>
#include <boost/thread/future.hpp>

Go to the source code of this file.

Namespaces

 daq
 
 daq::op
 

Functions

template<class Op , class R = decltype(std::declval<Op&>().Initiate()), class... Params>
daq::op::InitiateOperation (Params &&... params)
 Constructs and initiates Op and return the future result. More...
 
template<class Op , class R = decltype(std::declval<Op&>().Initiate()), class... Params>
std::pair< R, std::function< bool()> > daq::op::InitiateAbortableOperation (Params &&... params)
 Like InitiateOperation but in addition to returning the future it also returns an unspecified object Abort that can be invoked to abort the operation. More...
 

Detailed Description

Contains declarations for the helper functions to initiate operations.

Definition in file initiate.hpp.