EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
List of all members
CompressionAction Class Reference

#include <CompressionStrategy.h>

Detailed Description

The interface for implementing compression actions.

To create a custom action, better inherit CompressionActionMixin, which simplifies implementation. In this case, the only method which must be provided is:

template <typename T>
bool apply(fitsfile*, const ImageHdu::Initializer<T>&);
A structure which holds everything known at image extension initialization.
Definition: ImageHdu.h:52

Internally, it must call Cfitsio::ImageCompression::compress(fitsfile*, const Compression&) (maybe through Compress::apply(fitsfile*, const Compression&) and return true whenever possible. If the action is not compatible with the initializer, then it must simply return false.

Public Member Functions

Construction
 CompressionAction ()=default
 

The documentation for this class was generated from the following file: