ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
#include <managerMock.hpp>
Public Member Functions | |
DaqControllerFake (std::shared_ptr< daq::ObservableStatus > status_arg) | |
boost::future< daq::State > | StartAsync () override |
Starts the data acquisition. More... | |
boost::future< daq::Status > | StopAsync (daq::ErrorPolicy policy) override |
Stops the data acquisition. More... | |
boost::future< daq::Status > | AbortAsync (daq::ErrorPolicy policy) override |
Aborts the data acquisition. More... | |
boost::future< daq::State > | ScheduleMergeAsync () override |
Schedules DAQ for merging by sending request to DPM. More... | |
void | UpdateKeywords (daq::fits::KeywordVector const &keywords) override |
Updates (replace or add) list of keywords. More... | |
boost::future< daq::State > | AwaitAsync (std::vector< std::string > sources, std::chrono::milliseconds timeout) override |
Awaits that data acquisition stops or aborts. More... | |
daq::State | GetState () const DAQ_NOEXCEPT override |
std::shared_ptr< daq::ObservableStatus > | GetStatus () DAQ_NOEXCEPT override |
std::shared_ptr< daq::ObservableStatus const > | GetStatus () const DAQ_NOEXCEPT override |
std::shared_ptr< daq::ObservableEventLog > | GetEventLog () DAQ_NOEXCEPT override |
std::string const & | GetId () const DAQ_NOEXCEPT override |
bool | GetErrorFlag () const DAQ_NOEXCEPT override |
daq::DaqContext const & | GetContext () const DAQ_NOEXCEPT override |
boost::signals2::connection | ConnectContext (ContextSignal::slot_type const &slot) override |
Connect observer that is invoked when context is modified. More... | |
Public Member Functions inherited from daq::DaqController | |
DaqController ()=default | |
virtual | ~DaqController ()=default |
Public Attributes | |
ContextSignal | signal |
std::shared_ptr< daq::ObservableStatus > | status |
daq::DaqContext | ctx |
Additional Inherited Members | |
Public Types inherited from daq::DaqController | |
using | ContextSignal = boost::signals2::signal< void(DaqContext const &)> |
Definition at line 27 of file managerMock.hpp.
|
inline |
Definition at line 28 of file managerMock.hpp.
|
inlineoverridevirtual |
Aborts the data acquisition.
policy | Error policy determining if errors are tolerated or not. |
It is possible to issue this request more than once, to e.g. retry a failed abort attempt.
GetState() not in (State::Aborted, State::Stopped)
GetState() == State::Aborting
if a data acquisition was ongoing otherwise GetState() == State::Aborted
. Implements daq::DaqController.
Definition at line 38 of file managerMock.hpp.
|
inlineoverridevirtual |
Awaits that data acquisition stops or aborts.
It is possible to await only only a subset of data sources by specifying their ids in sources
.
sources | An optional vector of source-ids to await, if empty all primary sources are awaited on. |
Implements daq::DaqController.
Definition at line 48 of file managerMock.hpp.
|
inlineoverridevirtual |
Connect observer that is invoked when context is modified.
o | Observer callable invoked on context changes. |
Implements daq::DaqController.
Definition at line 74 of file managerMock.hpp.
|
inlineoverridevirtual |
Implements daq::DaqController.
Definition at line 69 of file managerMock.hpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements daq::DaqController.
Definition at line 60 of file managerMock.hpp.
|
inlineoverridevirtual |
Implements daq::DaqController.
Definition at line 63 of file managerMock.hpp.
|
inlineoverridevirtual |
Implements daq::DaqController.
Definition at line 51 of file managerMock.hpp.
|
inlineoverridevirtual |
Implements daq::DaqController.
Definition at line 57 of file managerMock.hpp.
|
inlineoverridevirtual |
Implements daq::DaqController.
Definition at line 54 of file managerMock.hpp.
|
inlineoverridevirtual |
Schedules DAQ for merging by sending request to DPM.
Implements daq::DaqController.
Definition at line 41 of file managerMock.hpp.
|
inlineoverridevirtual |
Starts the data acquisition.
std::exception-derived | exception if internal error occurs. |
GetState() == State::Notstarted
GetState() == State::Starting
on success GetState() == State::Error
on error Implements daq::DaqController.
Definition at line 32 of file managerMock.hpp.
|
inlineoverridevirtual |
Stops the data acquisition.
GetState() not in (State::Stopped or State::Aborted)
GetState() == State::Stopping
Implements daq::DaqController.
Definition at line 35 of file managerMock.hpp.
|
inlineoverridevirtual |
Updates (replace or add) list of keywords.
keywords | Keywords to add. |
Implements daq::DaqController.
Definition at line 44 of file managerMock.hpp.
daq::DaqContext DaqControllerFake::ctx |
Definition at line 81 of file managerMock.hpp.
ContextSignal DaqControllerFake::signal |
Definition at line 78 of file managerMock.hpp.
std::shared_ptr<daq::ObservableStatus> DaqControllerFake::status |
Definition at line 80 of file managerMock.hpp.