Go to the documentation of this file.
12 #ifndef RTCTK_STANDALONETOOLS_RAWRECORDER_FITSCONVERTERIF_HPP
13 #define RTCTK_STANDALONETOOLS_RAWRECORDER_FITSCONVERTERIF_HPP
19 #include "CCfits/CCfits.h"
20 #include "CCfits/FITS.h"
77 const bool IsOpen() {
return m_fits_handle !=
nullptr;}
78 void Open(
const std::string& file);
84 std::unique_ptr<CCfits::FITS> m_fits_handle;
85 std::string m_directory;
87 bool m_store_timestamps;
88 bool m_store_sampleids;
91 #endif //RTCTK_STANDALONETOOLS_RAWRECORDER_FITSCONVERTERIF_HPP
RtmsHeader rtms_header
Definition: fitsConverterIf.hpp:24
gsl::span< const uint8_t > payload
Definition: fitsConverterIf.hpp:26
void SetFitsHandle(std::unique_ptr< CCfits::FITS > &&handle)
Definition: fitsConverterIf.cpp:38
double pcap_timestamp
Definition: fitsConverterIf.hpp:25
const bool IsOpen()
Definition: fitsConverterIf.hpp:77
MudpiHeader mudpi_header
Definition: fitsConverterIf.hpp:23
void Close()
Definition: fitsConverterIf.cpp:31
virtual ~FitsConverterIf()
Definition: fitsConverterIf.cpp:47
CCfits::FITS & GetFitsHandle()
Definition: fitsConverterIf.cpp:42
FitsConverterIf(const std::string &directory, bool split_files)
Construct a FITS converter.
Definition: fitsConverterIf.cpp:16
bool GetStoreSampleIds()
Get current setting for storing sample ids as keywords.
Definition: fitsConverterIf.hpp:57
virtual void WriteData(const PacketData &data)=0
Write data into the FITS file(s)
const std::string & GetDirectory()
Get the setting for splitting files.
Definition: fitsConverterIf.hpp:73
Definition: fitsConverterIf.hpp:22
void Open(const std::string &file)
Definition: fitsConverterIf.cpp:27
bool GetStoreTimestamps()
Get current setting for storing timestamps as keywords.
Definition: fitsConverterIf.hpp:62
Definition: fitsConverterIf.hpp:29
bool GetSplitFiles()
Get the setting for splitting files.
Definition: fitsConverterIf.hpp:67
void SetStoreSampleIds(bool store)
Enable or disable storage of sample ids as keywords.
Definition: fitsConverterIf.hpp:47
void SetStoreTimestamps(bool store)
Enable or disable storage of timestamps as keywords.
Definition: fitsConverterIf.hpp:52