ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Implementation of daq::Workspace. More...
#include <workspace.hpp>
Public Member Functions | |
WorkspaceImpl (std::filesystem::path root) | |
Opens or creates workspace in the specified location, using that as a root. More... | |
auto | GetPath () const -> std::filesystem::path override |
void | RemoveDaq (std::string const &id) override |
Removes workspace and all containing files for DAQ without archiving it. More... | |
void | ArchiveDaq (std::string const &id) override |
Archives specified DAQ without deleting any files, typically by moving files it to a specific location in the workspace. More... | |
auto | LoadList () const -> std::vector< std::string > override |
void | StoreList (std::vector< std::string > const &queue) const override |
Load/store DAQ status | |
auto | LoadStatus (std::string const &id) const -> Status override |
void | StoreStatus (Status const &status) const override |
Load/store Data Product specification. | |
auto | LoadContext (std::string const &id) const -> DaqContext override |
Get file name of the data product specification stored in StoreSpecification() More... | |
void | StoreContext (DaqContext const &context) const override |
Get file name of the data product specification stored in StoreSpecification() More... | |
![]() | |
virtual | ~Workspace () |
Implementation of daq::Workspace.
Definition at line 90 of file workspace.hpp.
daq::WorkspaceImpl::WorkspaceImpl | ( | std::filesystem::path | root | ) |
Opens or creates workspace in the specified location, using that as a root.
If directory does not exist it will attempt to create it, including intermeditate parent directories and basic workspace structure:
If directories exist the necessary permissions for current user (rwx) is checked.
std::invalid_argument | if root exist and is not a directory. |
std::system_error | with permission denied if directories cannot be created or have the wrong permissions if they already exist. |
|
overridevirtual |
Archives specified DAQ without deleting any files, typically by moving files it to a specific location in the workspace.
Implements daq::Workspace.
Definition at line 122 of file workspace.cpp.
|
inlineoverridevirtual |
Implements daq::Workspace.
Definition at line 109 of file workspace.hpp.
|
overridevirtual |
Get file name of the data product specification stored in StoreSpecification()
Implements daq::Workspace.
Definition at line 194 of file workspace.cpp.
|
overridevirtual |
Implements daq::Workspace.
Definition at line 152 of file workspace.cpp.
|
overridevirtual |
Implements daq::Workspace.
Definition at line 174 of file workspace.cpp.
|
overridevirtual |
Removes workspace and all containing files for DAQ without archiving it.
Workspace is e.g. removed either if user aborts a Data Acquisition or to roll back failed initialization of a workspace.
id | Data Acquisition id. |
Implements daq::Workspace.
Definition at line 117 of file workspace.cpp.
|
overridevirtual |
Get file name of the data product specification stored in StoreSpecification()
Implements daq::Workspace.
Definition at line 208 of file workspace.cpp.
|
overridevirtual |
Implements daq::Workspace.
Definition at line 164 of file workspace.cpp.
|
overridevirtual |
Implements daq::Workspace.
Definition at line 184 of file workspace.cpp.