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