ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Classes | Namespaces | Typedefs | Enumerations | Functions
cfitsio.hpp File Reference

Contains functions and data structures related to cfitsio. More...

#include <memory>
#include <optional>
#include <cfitsio/fitsio.h>
#include <daq/fits/keyword.hpp>

Go to the source code of this file.

Classes

class  daq::fits::MemoryFitsFile
 In-memory FITS file. More...
 
class  daq::fits::CfitsioError
 Represents errors from cfitsio. More...
 

Namespaces

 daq
 
 daq::fits
 

Typedefs

using daq::fits::UniqueFitsFile = std::unique_ptr< fitsfile, void(*)(fitsfile *) noexcept >
 Defines unique ownership type to cfitsio fitsfile. More...
 

Enumerations

enum  daq::fits::HduType : int { daq::fits::HduType::Image = IMAGE_HDU, daq::fits::HduType::Ascii = ASCII_TBL, daq::fits::HduType::Binary = BINARY_TBL }
 
enum  daq::fits::OpenMode : uint8_t { daq::fits::OpenMode::ReadOnly, daq::fits::OpenMode::ReadWrite }
 

Functions

void daq::fits::SelectHduNum (fitsfile *ptr, int hdu_num)
 Select current HDU number. More...
 
void daq::fits::DefaultClose (fitsfile *ptr) noexcept
 Default close function that is used by UniqueFitsFile as a deleter. More...
 
UniqueFitsFile daq::fits::CreateEmpty (char const *filename)
 Creates empty FITS file using fits_create_file and returns a pointer with a deleter that will close the file. More...
 
UniqueFitsFile daq::fits::Open (char const *filename, OpenMode mode)
 Open file. More...
 
void daq::fits::InitPrimaryHduEmpty (fitsfile *ptr)
 Initializes an empty FITS file with an empty primary HDU (no keywords) More...
 
void daq::fits::InitPrimaryHduNoImage (fitsfile *ptr)
 Initializes an empty FITS file with a primary HDU. More...
 
std::vector< LiteralKeyword > daq::fits::ReadKeywords (fitsfile *ptr, int hdu_num)
 Read keywords from HDU identifed by absolute position hdu_num. More...
 
void daq::fits::DeleteAllKeywords (fitsfile *ptr, int hdu_num)
 Delete all keywords from HDU. More...
 
std::vector< LiteralKeyword > daq::fits::ReadKeywords (fitsfile *ptr, std::string_view name, std::optional< int > version=std::nullopt)
 Read keywords from HDU identifed by EXTNAME and EXTVER keywords. More...
 
void daq::fits::WriteKeywords (fitsfile *ptr, int hdu_num, std::vector< LiteralKeyword > const &keywords, std::optional< ssize_t > *remaining_size=nullptr)
 Write keywords to HDU identified by number hdu_num. More...
 
void daq::fits::WriteChecksum (fitsfile *ptr, int hdu_num)
 Write or update checksum keywords DATASUM and CHECKSUM to HDU specified by hdu_num. More...
 

Detailed Description

Contains functions and data structures related to cfitsio.

Definition in file cfitsio.hpp.