|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
Go to the documentation of this file.
8 #ifndef OCM_DAQ_TEST_MOCK_FITS_CONTROLLER_HPP_
9 #define OCM_DAQ_TEST_MOCK_FITS_CONTROLLER_HPP_
13 #include <gmock/gmock.h>
36 #endif // #define OCM_DAQ_TEST_MOCK_FITS_CONTROLLER_HPP_
State
Observable states of the data acquisition process.
MOCK_METHOD1(AddComment, void(std::string))
MOCK_CONST_METHOD0(GetResult, std::optional< DpPart >())
MOCK_METHOD1(Stop, std::optional< DpPart >(ErrorPolicy))
virtual void UpdateKeywords(std::vector< fits::KeywordVariant > const &keywords)=0
Updates with provided keywords.
MOCK_METHOD1(UpdateKeywords, void(std::vector< fits::KeywordVariant > const &))
virtual std::string const & GetId() const DAQ_NOEXCEPT=0
Query FITS file path.
MOCK_METHOD1(Abort, void(ErrorPolicy))
virtual State GetState() const DAQ_NOEXCEPT=0
Query state.
MOCK_CONST_METHOD0(GetId, std::string const &())
virtual std::optional< DpPart > GetResult() const DAQ_NOEXCEPT=0
Query FITS file path.
Contains declaration for for FitsController.
virtual void AddComment(std::string comment)=0
Add comment.
virtual void Start()=0
Creates FITS file and pupulates it with initial list of keywords.
MOCK_METHOD0(Start, void())
Create FITS file containing keywords from OCM for the Data Acquisition.
ErrorPolicy
Error policy supported by certain operations.
virtual std::optional< DpPart > Stop(ErrorPolicy policy)=0
Finalizes the FITS file.
MOCK_CONST_METHOD0(GetState, State())
virtual void Abort(ErrorPolicy policy)=0
Aborts and deletes FITS file.
Mock version of daq::FitsController.