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

#include <managerMock.hpp>

+ Inheritance diagram for ManagerMock:

Public Member Functions

 MOCK_CONST_METHOD2 (HaveDaq, bool(std::string_view, std::string_view))
 
 MOCK_CONST_METHOD1 (MakeDaqId, std::string(std::chrono::system_clock::time_point *))
 
 MOCK_CONST_METHOD1 (GetStatus, daq::Status(std::string_view))
 
 MOCK_METHOD1 (StartDaqAsync, boost::future< daq::State >(daq::DaqContext))
 
 MOCK_METHOD2 (StopDaqAsync, boost::future< daq::Status >(std::string_view, daq::ErrorPolicy))
 
 MOCK_METHOD2 (AbortDaqAsync, boost::future< daq::Status >(std::string_view, daq::ErrorPolicy))
 
 MOCK_METHOD3 (AwaitDaqStateAsync, boost::future< daq::Result< daq::Status >>(std::string_view, daq::State, std::chrono::milliseconds))
 
 MOCK_METHOD2 (UpdateKeywords, void(std::string_view, daq::fits::KeywordVector const &))
 
 MOCK_METHOD0 (RestoreFromWorkspace, void())
 
 MOCK_METHOD0 (GetStatusSignal, daq::StatusSignal &())
 
 MOCK_METHOD0 (GetDaqControllers, std::vector< std::shared_ptr< daq::DaqController const >>())
 
- Public Member Functions inherited from daq::Manager
virtual ~Manager ()
 
virtual void RestoreFromWorkspace ()=0
 Restore from state stored in workspace. More...
 
virtual std::string MakeDaqId (std::chrono::system_clock::time_point *time=nullptr) const =0
 Creates a new unique identifier based on the instrument id and current time. More...
 
virtual bool HaveDaq (std::string_view id, std::string_view file_id={}) const DAQ_NOEXCEPT=0
 Query existing data acquisition by id and optional file_id. More...
 
virtual Status GetStatus (std::string_view id) const =0
 Get status. More...
 
virtual boost::future< StateStartDaqAsync (DaqContext ctx)=0
 Start DaqController identified by id. More...
 
virtual boost::future< StatusStopDaqAsync (std::string_view id, ErrorPolicy policy)=0
 Stop DaqController identified by id. More...
 
virtual boost::future< StatusAbortDaqAsync (std::string_view id, ErrorPolicy policy)=0
 Abort DaqController identified by id. More...
 
virtual boost::future< Result< Status > > AwaitDaqStateAsync (std::string_view id, State state, std::chrono::milliseconds timeout)=0
 Await DAQ state. More...
 
virtual void UpdateKeywords (std::string_view id, fits::KeywordVector const &keywords)=0
 Update FITS keywords for DaqController identified by id. More...
 
virtual StatusSignalGetStatusSignal ()=0
 
virtual std::vector< std::shared_ptr< DaqController const > > GetDaqControllers ()=0
 

Additional Inherited Members

- Public Types inherited from daq::Manager
using Signal = boost::signals2::signal< void(ObservableStatus const &)>
 

Detailed Description

Definition at line 9 of file managerMock.hpp.

Member Function Documentation

◆ MOCK_CONST_METHOD1() [1/2]

ManagerMock::MOCK_CONST_METHOD1 ( GetStatus  ,
daq::Status(std::string_view)   
)

◆ MOCK_CONST_METHOD1() [2/2]

ManagerMock::MOCK_CONST_METHOD1 ( MakeDaqId  ,
std::string(std::chrono::system_clock::time_point *)   
)

◆ MOCK_CONST_METHOD2()

ManagerMock::MOCK_CONST_METHOD2 ( HaveDaq  ,
bool(std::string_view, std::string_view)   
)

◆ MOCK_METHOD0() [1/3]

ManagerMock::MOCK_METHOD0 ( GetDaqControllers  ,
std::vector< std::shared_ptr< daq::DaqController const >>  () 
)

◆ MOCK_METHOD0() [2/3]

ManagerMock::MOCK_METHOD0 ( GetStatusSignal  ,
daq::StatusSignal () 
)

◆ MOCK_METHOD0() [3/3]

ManagerMock::MOCK_METHOD0 ( RestoreFromWorkspace  ,
void()   
)

◆ MOCK_METHOD1()

ManagerMock::MOCK_METHOD1 ( StartDaqAsync  ,
boost::future< daq::State daq::DaqContext 
)

◆ MOCK_METHOD2() [1/3]

ManagerMock::MOCK_METHOD2 ( AbortDaqAsync  ,
boost::future< daq::Status std::string_view, daq::ErrorPolicy 
)

◆ MOCK_METHOD2() [2/3]

ManagerMock::MOCK_METHOD2 ( StopDaqAsync  ,
boost::future< daq::Status std::string_view, daq::ErrorPolicy 
)

◆ MOCK_METHOD2() [3/3]

ManagerMock::MOCK_METHOD2 ( UpdateKeywords  ,
void(std::string_view, daq::fits::KeywordVector const &)   
)

◆ MOCK_METHOD3()

ManagerMock::MOCK_METHOD3 ( AwaitDaqStateAsync  ,
boost::future< daq::Result< daq::Status >>  std::string_view, daq::State, std::chrono::milliseconds 
)

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