EleFits  4.0.1
A modern C++ API on top of CFitsIO
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Euclid::Fits::FitsFile Class Reference

#include <FitsFile.h>

Class Description

Fits file reader-writer.

Mostly en empty shell for file opening and closing operations; Useful services are in the SifFile and MefFile classes.

See also
File and HDU handlers
Inheritance diagram for Euclid::Fits::FitsFile:
[legend]

Public Member Functions

 FitsFile (const std::string &filename, FileMode permission)
 Create a new Fits file handler with given filename and permission.
 
virtual ~FitsFile ()
 Destroy the object and close the file. More...
 
std::string filename () const
 Get the file name.
 
bool isOpen () const
 Check whether the file is open.
 
void reopen ()
 Reopen the file. More...
 
void close ()
 Close the file. More...
 
void closeAndDelete ()
 Close and delete the file.
 

Protected Member Functions

void open (const std::string &filename, FileMode permission)
 Open a Fits file with given filename and permission. More...
 

Protected Attributes

fitsfile * m_fptr
 The CFitsIO file handler.
 
std::string m_filename
 The file name.
 
FileMode m_permission
 The file permission.
 
bool m_open
 An open flag to nullify m_fptr at close.
 

The documentation for this class was generated from the following file:
Euclid::Fits::FitsFile::filename
std::string filename() const
Get the file name.
Euclid::Fits::FitsFile::FitsFile
FitsFile(const std::string &filename, FileMode permission)
Create a new Fits file handler with given filename and permission.