ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Public Member Functions | Public Attributes | List of all members
daq::DaqControllerMock Struct Reference

Mock version of daq::DaqController. More...

#include <daqController.hpp>

+ Inheritance diagram for daq::DaqControllerMock:

Public Member Functions

 MOCK_METHOD0 (StartAsync, boost::future< daq::State >())
 
 MOCK_METHOD1 (StopAsync, boost::future< daq::Status >(ErrorPolicy))
 
 MOCK_METHOD1 (AbortAsync, boost::future< daq::Status >(ErrorPolicy))
 
 MOCK_METHOD0 (ScheduleMergeAsync, boost::future< daq::State >())
 
 MOCK_METHOD1 (UpdateKeywords, void(fits::KeywordVector const &))
 
 MOCK_METHOD2 (AwaitAsync, boost::future< daq::State >(std::vector< std::string >, std::chrono::milliseconds))
 
 MOCK_CONST_METHOD0 (GetErrorFlag, bool())
 
 MOCK_METHOD0 (GetStatus, std::shared_ptr< daq::ObservableStatus >())
 
 MOCK_CONST_METHOD0 (GetStatus, std::shared_ptr< daq::ObservableStatus const >())
 
 MOCK_METHOD0 (GetEventLog, std::shared_ptr< daq::ObservableEventLog >())
 
 MOCK_CONST_METHOD0 (GetId, std::string const &())
 
 MOCK_CONST_METHOD0 (GetContext, DaqContext const &())
 
daq::State GetState () const override
 
boost::signals2::connection ConnectContext (ContextSignal::slot_type const &slot) override
 Connect observer that is invoked when context is modified. More...
 
- Public Member Functions inherited from daq::DaqController
 DaqController ()=default
 
virtual ~DaqController ()=default
 
virtual boost::future< StateStartAsync ()=0
 Starts the data acquisition. More...
 
virtual boost::future< StatusStopAsync (ErrorPolicy policy)=0
 Stops the data acquisition. More...
 
virtual boost::future< StatusAbortAsync (ErrorPolicy policy)=0
 Aborts the data acquisition. More...
 
virtual boost::future< StateScheduleMergeAsync ()=0
 Schedules DAQ for merging by sending request to DPM. More...
 
virtual void UpdateKeywords (fits::KeywordVector const &keywords)=0
 Updates (replace or add) list of keywords. More...
 
virtual boost::future< StateAwaitAsync (std::vector< std::string > sources, std::chrono::milliseconds timeout)=0
 Awaits that data acquisition stops or aborts. More...
 
virtual std::shared_ptr< ObservableStatusGetStatus () DAQ_NOEXCEPT=0
 
virtual std::shared_ptr< ObservableStatus const > GetStatus () const DAQ_NOEXCEPT=0
 
virtual std::shared_ptr< ObservableEventLogGetEventLog () DAQ_NOEXCEPT=0
 
virtual std::string const & GetId () const DAQ_NOEXCEPT=0
 
virtual bool GetErrorFlag () const DAQ_NOEXCEPT=0
 
virtual DaqContext const & GetContext () const DAQ_NOEXCEPT=0
 

Public Attributes

ContextSignal signal
 

Additional Inherited Members

- Public Types inherited from daq::DaqController
using ContextSignal = boost::signals2::signal< void(DaqContext const &)>
 

Detailed Description

Mock version of daq::DaqController.

Definition at line 22 of file daqController.hpp.

Member Function Documentation

◆ ConnectContext()

boost::signals2::connection daq::DaqControllerMock::ConnectContext ( ContextSignal::slot_type const &  slot)
inlineoverridevirtual

Connect observer that is invoked when context is modified.

Parameters
oObserver callable invoked on context changes.
Returns
signal connection object that can be used to disconnect observer:

Implements daq::DaqController.

Definition at line 42 of file daqController.hpp.

◆ GetState()

daq::State daq::DaqControllerMock::GetState ( ) const
inlineoverridevirtual
Returns
state of data acquisition.

Implements daq::DaqController.

Definition at line 37 of file daqController.hpp.

◆ MOCK_CONST_METHOD0() [1/4]

daq::DaqControllerMock::MOCK_CONST_METHOD0 ( GetContext  ,
DaqContext const &  () 
)

◆ MOCK_CONST_METHOD0() [2/4]

daq::DaqControllerMock::MOCK_CONST_METHOD0 ( GetErrorFlag  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [3/4]

daq::DaqControllerMock::MOCK_CONST_METHOD0 ( GetId  ,
std::string const &  () 
)

◆ MOCK_CONST_METHOD0() [4/4]

daq::DaqControllerMock::MOCK_CONST_METHOD0 ( GetStatus  ,
std::shared_ptr< daq::ObservableStatus const >  () 
)

◆ MOCK_METHOD0() [1/4]

daq::DaqControllerMock::MOCK_METHOD0 ( GetEventLog  ,
std::shared_ptr< daq::ObservableEventLog () 
)

◆ MOCK_METHOD0() [2/4]

daq::DaqControllerMock::MOCK_METHOD0 ( GetStatus  ,
std::shared_ptr< daq::ObservableStatus () 
)

◆ MOCK_METHOD0() [3/4]

daq::DaqControllerMock::MOCK_METHOD0 ( ScheduleMergeAsync  ,
boost::future< daq::State () 
)

◆ MOCK_METHOD0() [4/4]

daq::DaqControllerMock::MOCK_METHOD0 ( StartAsync  ,
boost::future< daq::State () 
)

◆ MOCK_METHOD1() [1/3]

daq::DaqControllerMock::MOCK_METHOD1 ( AbortAsync  ,
boost::future< daq::Status ErrorPolicy 
)

◆ MOCK_METHOD1() [2/3]

daq::DaqControllerMock::MOCK_METHOD1 ( StopAsync  ,
boost::future< daq::Status ErrorPolicy 
)

◆ MOCK_METHOD1() [3/3]

daq::DaqControllerMock::MOCK_METHOD1 ( UpdateKeywords  ,
void(fits::KeywordVector const &)   
)

◆ MOCK_METHOD2()

daq::DaqControllerMock::MOCK_METHOD2 ( AwaitAsync  ,
boost::future< daq::State std::vector< std::string >, std::chrono::milliseconds 
)

Member Data Documentation

◆ signal

ContextSignal daq::DaqControllerMock::signal

Definition at line 45 of file daqController.hpp.


The documentation for this struct was generated from the following file: