ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Go to the documentation of this file.
10 #ifndef DAQ_DPM_MOCK_MOCKSCHEDULER_HPP
11 #define DAQ_DPM_MOCK_MOCKSCHEDULER_HPP
13 #include <gmock/gmock.h>
29 (StatusSignal::slot_type
const& slot),
47 #endif // #ifndef DAQ_DPM_MOCK_MOCKSCHEDULER_HPP
virtual bool IsStopped() const noexcept=0
State
Observable states of the data acquisition process.
virtual auto GetResult() const noexcept -> std::filesystem::path const &=0
MOCK_METHOD(void, AbortDaq,(std::string const &),(override))
virtual std::vector< std::string > GetQueue() const noexcept=0
Queries current DAQ queue.
MOCK_METHOD(void, Stop,(),(override))
MOCK_METHOD(State, GetState,(),(const, noexcept, override))
MOCK_METHOD(std::filesystem::path const &, GetResult,(),(const, noexcept, override))
MOCK_METHOD(std::string, QueueDaq,(std::string const &),(override))
virtual void Start()=0
Start/stop operations.
MOCK_METHOD(Status, GetDaqStatus,(std::string const &),(const, override))
virtual void AbortDaq(std::string const &id)=0
Abort merging DAQ identified by id.
MOCK_METHOD(std::vector< std::string >, GetQueue,(),(const, noexcept, override))
MOCK_METHOD(bool, IsStopped,(),(const, noexcept, override))
MOCK_METHOD(void, Poll,(),(override))
daq::dpm::Scheduler and related class declarations.
Controller for specific DAQ.
Stores data acquisition status and allows subscription to status changes.
virtual std::string QueueDaq(std::string const &dp_spec)=0
Queues DAQ for processing.
MOCK_METHOD(boost::signals2::connection, ConnectStatus,(StatusSignal::slot_type const &slot),(override))
MOCK_METHOD(void, Start,(),(override))
Schedules asynchronous activities that results in merged Data Product and delivery.
virtual auto GetStatus() noexcept -> ObservableStatus &=0
MOCK_METHOD(ObservableStatus const &, GetStatus,(),(const, noexcept, override))
Non observable status object that keeps stores status of data acquisition.
virtual auto GetErrorFlag() const noexcept -> bool=0
MOCK_METHOD(void, Start,(),(override))
MOCK_METHOD(bool, GetErrorFlag,(),(const, noexcept, override))
MOCK_METHOD(bool, IsQueued,(std::string const &),(const, noexcept, override))
MOCK_METHOD(ObservableStatus &, GetStatus,(),(noexcept, override))
virtual bool IsQueued(std::string const &id) const noexcept=0
Queries if DAQ with ID has been queued before in the current workspace.
MOCK_METHOD(void, Stop,(),(override))
virtual auto GetId() const noexcept -> std::string const &=0
virtual auto GetState() const noexcept -> State=0
MOCK_METHOD(std::string const &, GetId,(),(const, noexcept, override))
virtual boost::signals2::connection ConnectStatus(StatusSignal::slot_type const &slot)=0
Signals.
virtual Status GetDaqStatus(std::string const &id) const =0
Queries current DAQ status, possibly from last recorded status in workspace.
virtual void Start()=0
Start/stop operations.