ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Public Member Functions | List of all members
daq::dpm::MockWorkspace Struct Reference

#include <mockWorkspace.hpp>

+ Inheritance diagram for daq::dpm::MockWorkspace:

Public Member Functions

 MOCK_METHOD (std::filesystem::path, GetPath,(),(const override))
 
 MOCK_METHOD (std::unique_ptr< DaqWorkspace >, InitializeDaq,(std::string const &daq_id),(override))
 
 MOCK_METHOD (std::unique_ptr< DaqWorkspace >, LoadDaq,(std::string const &daq_id),(override))
 
 MOCK_METHOD (std::filesystem::path, ArchiveDaq,(std::string const &),(override))
 
 MOCK_METHOD (void, RemoveDaq,(std::string const &),(override))
 
 MOCK_METHOD (std::vector< std::string >, EnumerateDaqs,(),(const, override))
 
 MOCK_METHOD (std::filesystem::space_info, QueryStorageStatus,(),(const, override))
 
 MOCK_METHOD (std::vector< std::string >, LoadQueue,(),(const, override))
 
 MOCK_METHOD (void, StoreQueue,(std::vector< std::string > const &),(const, override))
 
- Public Member Functions inherited from daq::dpm::Workspace
virtual ~Workspace ()
 
virtual auto GetPath () const -> std::filesystem::path=0
 
virtual auto InitializeDaq (std::string const &daq_id) -> std::unique_ptr< DaqWorkspace >=0
 Initializes new DAQ Workspace. More...
 
virtual auto LoadDaq (std::string const &daq_id) -> std::unique_ptr< DaqWorkspace >=0
 Loads a previously initialized DAQ workspace. More...
 
virtual auto ArchiveDaq (std::string const &daq_id) -> std::filesystem::path=0
 Archives specified DAQ witout deleting any files, typically by moving it to a specific location in the workspace. More...
 
virtual void RemoveDaq (std::string const &daq_id)=0
 Removes workspace and all containing files for DAQ without archiving it. More...
 
virtual auto EnumerateDaqs () const -> std::vector< std::string >=0
 Enumerates in-progress DAQs by querying file system rather than relying on the queue file. More...
 
virtual auto QueryStorageStatus () const -> std::filesystem::space_info=0
 Queries available storage for workspace. More...
 
virtual auto LoadQueue () const -> std::vector< std::string >=0
 
virtual void StoreQueue (std::vector< std::string > const &queue) const =0
 

Detailed Description

Definition at line 18 of file mockWorkspace.hpp.

Member Function Documentation

◆ MOCK_METHOD() [1/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::filesystem::path  ,
ArchiveDaq  ,
(std::string const &)  ,
(override)   
)

◆ MOCK_METHOD() [2/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::filesystem::path  ,
GetPath  ,
()  ,
(const override)   
)

◆ MOCK_METHOD() [3/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::filesystem::space_info  ,
QueryStorageStatus  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [4/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::unique_ptr< DaqWorkspace ,
InitializeDaq  ,
(std::string const &daq_id)  ,
(override)   
)

◆ MOCK_METHOD() [5/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::unique_ptr< DaqWorkspace ,
LoadDaq  ,
(std::string const &daq_id)  ,
(override)   
)

◆ MOCK_METHOD() [6/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::vector< std::string >  ,
EnumerateDaqs  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [7/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( std::vector< std::string >  ,
LoadQueue  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [8/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( void  ,
RemoveDaq  ,
(std::string const &)  ,
(override)   
)

◆ MOCK_METHOD() [9/9]

daq::dpm::MockWorkspace::MOCK_METHOD ( void  ,
StoreQueue  ,
(std::vector< std::string > const &)  ,
(const, override)   
)

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