ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Public Member Functions | List of all members
daq::DaqControllerFactory Class Referenceabstract

Abstract factory for DaqControllers. More...

#include <daqController.hpp>

+ Inheritance diagram for daq::DaqControllerFactory:

Public Member Functions

virtual auto MakeOcmPhase (DaqContext daq_ctx, std::shared_ptr< ObservableStatus > status, std::shared_ptr< ObservableEventLog > event_log) -> std::shared_ptr< DaqController >=0
 Create instance for the OCM phase of the DAQ process. More...
 
virtual auto MakeDpmPhase (DaqContext daq_ctx, std::shared_ptr< ObservableStatus > status, std::shared_ptr< ObservableEventLog > event_log) -> std::shared_ptr< DaqController >=0
 Create instance for the DPM phase of the DAQ process. More...
 

Detailed Description

Abstract factory for DaqControllers.

Main purpose is to allow daq::Manager to use a factory that creates mocks rather than real implementations for testing.

Definition at line 76 of file daqController.hpp.

Member Function Documentation

◆ MakeDpmPhase()

virtual auto daq::DaqControllerFactory::MakeDpmPhase ( DaqContext  daq_ctx,
std::shared_ptr< ObservableStatus status,
std::shared_ptr< ObservableEventLog event_log 
) -> std::shared_ptr< DaqController >
pure virtual

Create instance for the DPM phase of the DAQ process.

Implemented in daq::DaqControllerFactoryFake, and daq::DaqControllerFactoryDefault.

◆ MakeOcmPhase()

virtual auto daq::DaqControllerFactory::MakeOcmPhase ( DaqContext  daq_ctx,
std::shared_ptr< ObservableStatus status,
std::shared_ptr< ObservableEventLog event_log 
) -> std::shared_ptr< DaqController >
pure virtual

Create instance for the OCM phase of the DAQ process.

Implemented in daq::DaqControllerFactoryFake, and daq::DaqControllerFactoryDefault.


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