|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
#include <fitsController.hpp>
Inheritance diagram for daq::FitsControllerImpl:Public Member Functions | |
| FitsControllerImpl (DaqProperties const &properties, std::shared_ptr< ObservableEventLog > event_log, std::function< fits::UniqueFitsFile(char const *)> fits_create=&fits::CreateEmpty) | |
| void | Start () override |
| Creates FITS file and pupulates it with initial list of keywords. More... | |
| std::optional< DpPart > | Stop (ErrorPolicy policy) override |
| Finalizes the FITS file. More... | |
| void | Abort (ErrorPolicy policy) override |
| Aborts and deletes FITS file. More... | |
| void | UpdateKeywords (std::vector< fits::KeywordVariant >const &) override |
| Updates with provided keywords. More... | |
| void | AddComment (std::string comment) override |
| Add comment. More... | |
| std::string const & | GetId () const DAQ_NOEXCEPT override |
| Query FITS file path. More... | |
| std::optional< DpPart > | GetResult () const DAQ_NOEXCEPT override |
| Query FITS file path. More... | |
| State | GetState () const DAQ_NOEXCEPT override |
| Query state. More... | |
| fitsfile * | GetFitsfile () const noexcept |
Public Member Functions inherited from daq::FitsController | |
| virtual | ~FitsController ()=default |
Definition at line 138 of file fitsController.hpp.
| daq::FitsControllerImpl::FitsControllerImpl | ( | DaqProperties const & | properties, |
| std::shared_ptr< ObservableEventLog > | event_log, | ||
| std::function< fits::UniqueFitsFile(char const *)> | fits_create = &fits::CreateEmpty |
||
| ) |
Definition at line 92 of file fitsController.cpp.
|
overridevirtual |
Aborts and deletes FITS file.
GetState() == State::Acquiring. Implements daq::FitsController.
Definition at line 177 of file fitsController.cpp.
|
overridevirtual |
Add comment.
GetState() != State::Stopped && GetState() != State::Aborted.| comment | Comment to add to FITS file. " |
| std::runtime_error | if GetState() == State::Stopped || GetState() == State::Aborted. |
Implements daq::FitsController.
Definition at line 209 of file fitsController.cpp.
|
inlinenoexcept |
Definition at line 154 of file fitsController.hpp.
|
overridevirtual |
Query FITS file path.
Implements daq::FitsController.
Definition at line 219 of file fitsController.cpp.
|
overridevirtual |
Query FITS file path.
Implements daq::FitsController.
Definition at line 223 of file fitsController.cpp.
|
overridevirtual |
Query state.
Implements daq::FitsController.
Definition at line 231 of file fitsController.cpp.
|
overridevirtual |
Creates FITS file and pupulates it with initial list of keywords.
GetState() == State::NotStarted. | fits::CfitsioError | on errors with cfitsio. |
| std::runtime_error | on error. |
Implements daq::FitsController.
Definition at line 130 of file fitsController.cpp.
|
overridevirtual |
Finalizes the FITS file.
If policy ErrorPolicy::Strict the function will throw if there was any error in creating the FITS file. If policy is ErrorPolicy::Tolerant exception will only be thrown for fatal errors, not if FITS file failed to be created.
| policy | Controls the error policy. |
| std::runtime_error | if GetState() != State::Acquiring. |
| daq::fits::CfitsioError | if no FITS file could be created and policy == ErrorPolicy::Strict. |
Implements daq::FitsController.
Definition at line 150 of file fitsController.cpp.
|
overridevirtual |
Updates with provided keywords.
| keywords | Keywords to add or replace. " |
| std::runtime_error | if GetState() == State::Stopped || GetState() == State::Aborted. |
Implements daq::FitsController.
Definition at line 199 of file fitsController.cpp.