EleFits  4.0.0
A modern C++ API on top of CFitsIO
Enumerations | Functions
Euclid::Cfitsio::FileAccess Namespace Reference

Detailed Description

File-related functions.

Enumerations

enum  CreatePolicy {
  CreatePolicy::CreateOnly,
  CreatePolicy::OverWrite
}
 File creation policy. More...
 
enum  OpenPolicy {
  OpenPolicy::ReadOnly,
  OpenPolicy::ReadWrite
}
 File opening policy. More...
 

Functions

fitsfile * createAndOpen (const std::string &filename, CreatePolicy policy)
 Create or overwrite a Fits file and open it.
 
fitsfile * open (const std::string &filename, OpenPolicy policy)
 Open an existing Fits file with optional write permission.
 
void close (fitsfile *&fptr)
 Close a Fits file.
 
void closeAndDelete (fitsfile *&fptr)
 Close and delete a Fits file. More...
 
std::string name (fitsfile *fptr)
 Get the file name.
 
bool isWritable (fitsfile *fptr)
 Check whether a Fits file is open with write permission.