![]() |
EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
#include <FitsFile.h>
Fits file reader-writer.
Mostly en empty shell for file opening and closing operations; Useful services are in the SifFile and MefFile classes.
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. | |