casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::FITSExtInfo Class Reference

class FitsKeywordList; More...

#include <FITSImgParser.h>

List of all members.

Public Member Functions

 FITSExtInfo (const String &name, const uInt &extindex, const String &extname, const Int &extversion, const Bool &hasdata)
 Construct the object.
 FITSExtInfo ()
 Construct the object.
 FITSExtInfo (const FITSExtInfo &other)
 Copy constructor (reference semantics)
 ~FITSExtInfo ()
 Destructor does nothing.
FITSExtInfooperator= (const FITSExtInfo &other)
 Assignment (reference semantics).
Bool operator== (const FITSExtInfo &extinfo)
 Relational operator.
String get_extexpr (void)
 All extension information as a string.
String get_extname (void)
 Return the extension name.
Int get_extversion (void)
 Return the extension version.
Bool has_data (void)
 Return whether there is data.
void add_kwlist (FitsKeywordList &kwlist)
 Add a list of keywords.
FitsKeywordget_keyword (const String kname)
 Return a keyword.

Private Attributes

String name_p
uInt extindex_p
String extname_p
Int extversion_p
Bool hasdata_p
FitsKeywordList kwlist_p

Detailed Description

class FitsKeywordList;

Class for storing FITS Image extension information

Intended use:

Public interface

Review Status

Test programs:
tFITSImgParser

Etymology

The class stores the essential information on a FITS image extension.

Synopsis

The class stores the essential information on a FITS image extension, which is the FITS file name, the extension name, the extension version, the index within the FITS file.

Example

       FITSImgParser fitsImg("in.fits");
       FITSExtInfo extinfo("in.fits", 0, "SCI", 1, True);
       Int index = fitsImg.get_index(extinfo);              // get the index of extension "[SCI, 1]"

Motivation

Helper class for accessing multi-extension FITS files.

Definition at line 215 of file FITSImgParser.h.


Constructor & Destructor Documentation

casa::FITSExtInfo::FITSExtInfo ( const String name,
const uInt extindex,
const String extname,
const Int extversion,
const Bool hasdata 
)

Construct the object.

Construct the object.

Definition at line 223 of file FITSImgParser.h.

References casa::False.

Copy constructor (reference semantics)

Destructor does nothing.


Member Function Documentation

Add a list of keywords.

All extension information as a string.

Return the extension name.

Definition at line 244 of file FITSImgParser.h.

References extname_p.

Return the extension version.

Definition at line 247 of file FITSImgParser.h.

References extversion_p.

Return a keyword.

Definition at line 256 of file FITSImgParser.h.

Bool casa::FITSExtInfo::has_data ( void  ) [inline]

Return whether there is data.

Definition at line 250 of file FITSImgParser.h.

References hasdata_p.

FITSExtInfo& casa::FITSExtInfo::operator= ( const FITSExtInfo other)

Assignment (reference semantics).

Bool casa::FITSExtInfo::operator== ( const FITSExtInfo extinfo)

Relational operator.


Member Data Documentation

Definition at line 260 of file FITSImgParser.h.

Definition at line 261 of file FITSImgParser.h.

Referenced by get_extname().

Definition at line 262 of file FITSImgParser.h.

Referenced by get_extversion().

Definition at line 263 of file FITSImgParser.h.

Referenced by has_data().

Definition at line 264 of file FITSImgParser.h.

Definition at line 256 of file FITSImgParser.h.


The documentation for this class was generated from the following file: