|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
Go to the documentation of this file. 1 #ifndef DAQ_OP_ASYNC_OP_PARAMS_HPP_
2 #define DAQ_OP_ASYNC_OP_PARAMS_HPP_
4 #include <boost/asio/io_context.hpp>
5 #include <log4cplus/logger.h>
9 #include "../status.hpp"
10 #include "../eventLog.hpp"
11 #include "../pendingReplies.hpp"
12 #include "../source.hpp"
13 #include "../state.hpp"
14 #include "../utility.hpp"
27 log4cplus::Logger& logger_arg,
28 std::string
const& id_arg,
52 std::string
const&
id;
82 #endif // #ifndef DAQ_OP_ASYNC_OP_PARAMS_HPP_
std::vector< Source< PrimSource > > & prim_sources
Note: Consider vector immutable!
log4cplus::Logger & logger
PendingReplies & pending_replies
AsyncOpParams(AsyncOpParams const &)=default
std::vector< Source< MetaSource > > & meta_sources
Note: Consider vector immutable!a.
AwaitOpParams(AwaitOpParams &&)=default
Simple class that allows you to keep track of how many replies are pending.
Adapts boost::asio::io_context into a compatible boost::thread Executor type.
ObservableEventLog & event_log
Simple class that holds the source and associated state.
Stores data acquisition status and allows subscription to status changes.
Await specific parameters that is not provided with AsyncOpParams.
AwaitOpParams(AsyncOpParams common_arg, AwaitOpParams::Duration wait_interval_arg) noexcept
std::chrono::milliseconds Duration
rad::IoExecutor & executor
AsyncOpParams(ObservableStatus const &status_arg, ObservableEventLog &event_log_arg, rad::IoExecutor &executor_arg, log4cplus::Logger &logger_arg, std::string const &id_arg, PendingReplies &pending_replies_arg, std::vector< Source< PrimSource >> &prim_sources_arg, std::vector< Source< MetaSource >> &meta_sources_arg)
ObservableStatus const & status
Async operations should not modify status directly DaqController does that.
AwaitOpParams(AwaitOpParams const &)=default
Parameters required for each async operation.
Stores data acquisition status and allows subscription to status changes.
Duration wait_interval
Total amount of time to wait for condition to be fulfilled.
AsyncOpParams(AsyncOpParams &&)=default