ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Namespaces | Functions
cfitsio.cpp File Reference

Contains definitions for daq/fits/cfitsio.hpp. More...

#include <daq/fits/cfitsio.hpp>
#include <cassert>
#include <fmt/format.h>

Go to the source code of this file.

Namespaces

 daq
 
 daq::fits
 

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...
 
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...
 
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...
 
std::vector< LiteralKeyword > daq::fits::ReadKeywords (fitsfile *ptr, int hdu_num)
 Read keywords from HDU identifed by absolute position hdu_num. More...
 
std::vector< LiteralKeyword > daq::fits::ReadKeywords (fitsfile *ptr, HduType type, std::string_view name, std::optional< int > version)
 
void daq::fits::DeleteAllKeywords (fitsfile *ptr, int hdu_num)
 Delete all keywords from HDU. More...
 
void daq::fits::MakeHduSpace (fitsfile *ptr, int hdu_num, size_t additional_keys)
 
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 definitions for daq/fits/cfitsio.hpp.

Definition in file cfitsio.cpp.