|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
Go to the documentation of this file.
8 #ifndef OCM_DAQ_TEST_MOCK_DAQ_CONTROLLER_HPP_
9 #define OCM_DAQ_TEST_MOCK_DAQ_CONTROLLER_HPP_
14 #include <gmock/gmock.h>
27 boost::future<daq::State>(std::vector<std::string>, std::chrono::milliseconds));
42 #endif // #define OCM_DAQ_TEST_MOCK_DAQ_CONTROLLER_HPP_
MOCK_METHOD2(AwaitAsync, boost::future< daq::State >(std::vector< std::string >, std::chrono::milliseconds))
State
Observable states of the data acquisition process.
daq::State GetState() const override
Mock version of daq::DaqController.
MOCK_METHOD0(GetEventLog, std::shared_ptr< daq::ObservableEventLog >())
virtual boost::future< State > AwaitAsync(std::vector< std::string > sources, std::chrono::milliseconds timeout)=0
Awaits that data acquisition stops or aborts.
MOCK_CONST_METHOD0(GetErrorFlag, bool())
MOCK_METHOD1(AbortAsync, boost::future< daq::Status >(ErrorPolicy))
virtual boost::future< State > StartAsync()=0
Starts the data acquisition.
virtual boost::future< Status > AbortAsync(ErrorPolicy policy)=0
Aborts the data acquisition.
virtual void UpdateKeywords(fits::KeywordVector const &keywords)=0
Updates (replace or add) list of keywords.
MOCK_METHOD0(GetStatus, std::shared_ptr< daq::ObservableStatus >())
MOCK_METHOD1(StopAsync, boost::future< daq::Status >(ErrorPolicy))
MOCK_CONST_METHOD0(GetStatus, std::shared_ptr< daq::ObservableStatus const >())
MOCK_METHOD0(StartAsync, boost::future< daq::State >())
MOCK_CONST_METHOD0(GetId, std::string const &())
Contains declaration for for DaqController.
virtual std::string const & GetId() const DAQ_NOEXCEPT=0
std::vector< KeywordVariant > KeywordVector
Vector of keywords.
virtual std::shared_ptr< ObservableEventLog > GetEventLog() DAQ_NOEXCEPT=0
ErrorPolicy
Error policy supported by certain operations.
Controls the execution of single data acquisition that ultimately result in a set of FITS keywords an...
MOCK_METHOD1(UpdateKeywords, void(fits::KeywordVector const &))
virtual bool GetErrorFlag() const DAQ_NOEXCEPT=0
virtual boost::future< Status > StopAsync(ErrorPolicy policy)=0
Stops the data acquisition.
virtual std::shared_ptr< ObservableStatus > GetStatus() DAQ_NOEXCEPT=0