25 #ifndef _TABLE_FITSWRITER_H
26 #define _TABLE_FITSWRITER_H
28 #include <CCfits/FITS.h>
FitsWriter & setFormat(Format format)
Set the FITS table format.
FITS binary table HDU format.
FitsWriter(const std::string &filename, bool override_flag=false)
Creates a FitsWriter that writes to a specific file.
std::shared_ptr< CCfits::FITS > m_fits
FITS ASCII table HDU format.
TableWriter implementation for writing tables in FITS format.
void init(const Table &table) override
Format
The format of the HDUs a FitsWriter creates.
std::vector< std::string > m_comments
FitsWriter & setHduName(const std::string &name)
Set the HDU name where the table is written.
void addComment(const std::string &message) override
Adds a comment to the stream.
FitsWriter & operator=(FitsWriter &&)=default
void append(const Table &table) override
Interface for classes writing tables.
virtual ~FitsWriter()=default
Destructor.