26#ifndef IMAGES_FITSImgParser_H 
   27#define IMAGES_FITSImgParser_H 
   29#include <casacore/casa/aips.h> 
   30#include <casacore/fits/FITS/fits.h> 
   31#include <casacore/casa/Arrays/Vector.h> 
   32#include <casacore/casa/BasicSL/String.h> 
  219            const Int &extversion, 
const Bool &hasdata);
 
 
Int get_extversion(void)
Return the extension version.
 
FITSExtInfo()
Construct the object.
 
FITSExtInfo(const FITSExtInfo &other)
Copy constructor (reference semantics)
 
String get_extexpr(void)
All extension information as a string.
 
~FITSExtInfo()
Destructor does nothing.
 
Bool operator==(const FITSExtInfo &extinfo)
Relational operator.
 
FITSExtInfo & operator=(const FITSExtInfo &other)
Assignment (reference semantics).
 
FitsKeyword * get_keyword(const String kname)
Return a keyword.
 
Bool has_data(void)
Return whether there is data.
 
void add_kwlist(FitsKeywordList &kwlist)
Add a list of keywords.
 
FITSExtInfo(const String &name, const uInt &extindex, const String &extname, const Int &extversion, const Bool &hasdata)
Construct the object.
 
String get_extname(void)
Return the extension name.
 
void process_extension(HeaderDataUnit *h, const uInt &extindex)
Get the information on an extension.
 
FITSImgParser(const FITSImgParser &other)
Copy constructor (reference semantics).
 
String get_errorext(const Int &ext_index)
Get the error extension name for the given data extension.
 
uInt get_firstdata_index(void)
Get the index of the first extension with data.
 
void setup(void)
Setup the object (used by constructors).
 
static const int nKwords_p
 
Bool get_extlist(const String &extexpr, Vector< String > &extlist)
Extract the list of extensions from the extension expression.
 
uInt get_numhdu(void)
Get the number of extensions.
 
Vector< String > qualimglist_p
 
Bool is_qualityimg(const String &extexpr)
Check whether the extensions named in the extension expression can be loaded as a quality image.
 
Bool has_qualityimg(void)
Get the flag indicating at least one quality image.
 
Int get_index(const FITSExtInfo &extinfo)
Identify the index of an extension.
 
FITSImgParser(const String &name)
Construct a parser from the FITS file.
 
static const char * storeKwords_p[]
 
Bool confirm_fix_keywords(const Int &ext_index)
Check the keywords with fixed values.
 
Bool get_quality_data(const String &extexpr, Int &data_HDU, Int &error_HDU, String &error_type, Int &mask_HDU, String &mask_type, Int &mask_value)
Find all necessary access information for the extensions to be loaded as a quality image.
 
Int find_extension(const String &extname, const Int &extversion=-1)
Find an extension; return -1 if not found.
 
Bool find_qualimgs(void)
Find and store all set of extensions that can be loaded as a quality image.
 
FITSExtInfo * extensions_p
 
Int get_dataindex(const Vector< Int > &extindex)
Get the first extension with HDU type "data" from the list of indices.
 
String get_maskext(const Int &ext_index)
Get the mask extension name for the given data extension.
 
FITSImgParser & operator=(const FITSImgParser &other)
Assignment (reference semantics).
 
String fitsname(Bool stripPath=False) const
Returns the name of the disk file.
 
Bool index_is_HDUtype(const Int &ext_index, const String &hdutype)
Check whether the extension has a certain HDU type.
 
String get_extlist_string(const String &delimiter, const String &qualmarker="", const String &fitsmarker="", const Bool &listall=True)
Get a string representation of the extension list.
 
~FITSImgParser()
Destructor, does not much.
 
linked list of FITS keywords
 
String: the storage and methods of handling collections of characters.
 
const Char * c_str() const
Get char array.
 
this file contains all the compiler specific defines
 
bool Bool
Define the standard types used by Casacore.