ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
statusObserver.hpp
Go to the documentation of this file.
1/**
2 * @file
3 * @ingroup daq_ocm_libdaq_test
4 * @copyright 2022 ESO - European Southern Observatory
5 *
6 * @brief
7 */
8#ifndef OCF_DAQ_TEST_STATUS_OBSERVER_HPP_
9#define OCF_DAQ_TEST_STATUS_OBSERVER_HPP_
10
11#include <gmock/gmock.h>
12
13namespace daq {
14class ObservableStatus;
15}
16
17/**
18 * Simple observer used for testing.
19 *
20 * @ingroup daq_ocm_libdaq_test
21 */
23 MOCK_METHOD1(CallOperator, void(daq::ObservableStatus const&));
25 CallOperator(s);
26 }
27};
28
29#endif // #define OCF_DAQ_TEST_STATUS_OBSERVER_HPP_
Stores data acquisition status and allows subscription to status changes.
Definition: status.hpp:224
MOCK_METHOD1(CallOperator, void(daq::ObservableStatus const &))
void operator()(daq::ObservableStatus const &s)
Simple observer used for testing.