14 #ifndef _FitsFileBase_h
15 #define _FitsFileBase_h
121 bool hasKey (
const char * key )
const;
169 int moveToHDU (
const std::string & name );
191 #endif // _FitsFileBase_h
int m_status
The status return code from the last cfitsio operation.
FitsFileBase(const std::string &filename, bool write=false)
Protected construction taking a file name as argument.
static HduType convert(int i)
Converts an integer to HduType.
A base class for the concrete classes that wrap the cfitsio library.
int getHDUNumber() const
Returns the current HDU number.
int numKeywords() const
Return the number of existing keywords (not counting the END keyword).
long getNumberOfRows() const
Returns the number of rows in the table.
void clearErrorMessageStack(void)
Clear the entire error message stack.
Displays on the Z axis the values of a single column treated as a matrix of values.
32 bit floating point per pixel
HduType getHduType() const
Returns the type of HDU.
DataType
The data types supported by cfitsio.
ImageType getImageType() const
Returns the image type.
int moveToHDU(int hdunum)
Move to a specified absolute HDU number in the FITS file and return the cfitsio status.
int getImageDimensions() const
Returns the number of dimensions (axes) of an image.
int status() const
Returns the cfitsio status code for the last operation.
int getNumberOfColumns() const
Returns the number of columns in a table.
double doubleValueForKey(const char *key) const
Read a specified keyword value and return it as a double.
virtual ~FitsFileBase()
Virtual destructor.
fitsfile * m_fptr
Pointer to the fits file data structure.
The C struct used by cfitsio to maintain status of FITS file.
std::string stringValueForKey(const char *key) const
Read a specified keyword value and returns it as a string.
64 bit floating point per pixel
int intValueForKey(const char *key) const
Read a specified keyword value and returns it as a int.
ImageType
The type of image in HDU.
int write(const std::vector< double > &a)
Given the vector it writes it to std stream.
int getNumberOfHDU() const
Returns the number of HDU in the file.
FitsFileBase & operator=(const FitsFileBase &)
Disallow assignment.
bool hasKey(const char *key) const
Returns true if the keyword key exists, otherwise returns false.