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

Combined mock and fake of interface to DPM server. More...

#include <dpmClientMock.hpp>

+ Inheritance diagram for daq::DpmClientMock:

Public Member Functions

 MOCK_METHOD (boost::future< State >, ScheduleAsync,(std::string const &spec),(override))
 Schedule merging. More...
 
 MOCK_METHOD (boost::future< State >, AbortAsync,(std::string const &id),(override))
 Abort merging. More...
 
auto ConnectStatusSignal (StatusSignal::slot_type const &slot) -> boost::signals2::connection override
 Connect slot to status change signal. More...
 
auto ConnectStorageSignal (StorageSignal::slot_type const &slot) -> boost::signals2::connection override
 Connect slot to storage change signal. More...
 
- Public Member Functions inherited from daq::DpmClient
virtual auto ScheduleAsync (std::string const &spec) -> boost::future< State >=0
 Schedule merging. More...
 
virtual auto AbortAsync (std::string const &id) -> boost::future< State >=0
 Abort merging. More...
 

Public Attributes

StatusSignal status_signal
 
StorageSignal storage_signal
 

Additional Inherited Members

- Public Types inherited from daq::DpmClient
using StorageSignal = boost::signals2::signal< void(std::filesystem::space_info)>
 
using StatusSignal = boost::signals2::signal< void(Status)>
 

Detailed Description

Combined mock and fake of interface to DPM server.

Definition at line 19 of file dpmClientMock.hpp.

Member Function Documentation

◆ ConnectStatusSignal()

auto daq::DpmClientMock::ConnectStatusSignal ( StatusSignal::slot_type const &  slot) -> boost::signals2::connection
inlineoverridevirtual

Connect slot to status change signal.

DpmClient ensures that signals are only emitted from main thread.

Implements daq::DpmClient.

Definition at line 34 of file dpmClientMock.hpp.

◆ ConnectStorageSignal()

auto daq::DpmClientMock::ConnectStorageSignal ( StorageSignal::slot_type const &  slot) -> boost::signals2::connection
inlineoverridevirtual

Connect slot to storage change signal.

DpmClient ensures that signals are only emitted from main thread.

Implements daq::DpmClient.

Definition at line 39 of file dpmClientMock.hpp.

◆ MOCK_METHOD() [1/2]

daq::DpmClientMock::MOCK_METHOD ( boost::future< State ,
AbortAsync  ,
(std::string const &id)  ,
(override)   
)

Abort merging.

◆ MOCK_METHOD() [2/2]

daq::DpmClientMock::MOCK_METHOD ( boost::future< State ,
ScheduleAsync  ,
(std::string const &spec)  ,
(override)   
)

Schedule merging.

Member Data Documentation

◆ status_signal

StatusSignal daq::DpmClientMock::status_signal

Definition at line 43 of file dpmClientMock.hpp.

◆ storage_signal

StorageSignal daq::DpmClientMock::storage_signal

Definition at line 44 of file dpmClientMock.hpp.


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