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

A helper class for MSFitsInput. More...

#include <MSFitsInput.h>

List of all members.

Public Member Functions

 MSPrimaryGroupHolder ()
 This is a helper class to avoid cumbersome switch statements on the template type of the primary group It forwards all the PrimaryGroup member function we need in the filler.
 MSPrimaryGroupHolder (FitsInput &infile)
 Construct from an input file containing a FITS primary group hdu.
 ~MSPrimaryGroupHolder ()
void attach (FitsInput &infile)
 Attach to the input file, create the appropriate PrimaryGroup.
void detach ()
 Detach from the input file.
Int dims ()
 Number of dimensions.
Int dim (Int i)
 Length of i'th axis.
Charctype (Int i)
 Coordinate type.
Double crval (Int i)
 Coordinate reference value.
Double crpix (Int i)
 Coordinate reference pixel.
Double cdelt (Int i)
 Coordinate delta.
const FitsKeywordkw (const FITS::ReservedName &n)
 Keyword of given type.
ConstFitsKeywordListkwlist ()
 All keywords.
const FitsKeywordnextkw ()
 Advance to next keyword.
Int gcount () const
 Number of groups.
Int pcount () const
 Number of parameters.
Charptype (Int i) const
 Parameter type.
Int read ()
 Read the next group.
Double parm (Int i)
 Get i'th parameter.
Double operator() (Int i) const
 Get group data with index i, scaled and converted to Double.

Private Attributes

HeaderDataUnithdu_p
PrimaryGroup< Short > * ps
PrimaryGroup< FitsLong > * pl
PrimaryGroup< Float > * pf

Detailed Description

A helper class for MSFitsInput.

Intended use:

Internal

Etymology

This class can hold a primary group of several datatypes

Synopsis

This is a helper class to avoid cumbersome switch statements on the template type of the primary group It forwards all the PrimaryGroup member functions we need in the filler.

Definition at line 154 of file MSFitsInput.h.


Constructor & Destructor Documentation

This is a helper class to avoid cumbersome switch statements on the template type of the primary group It forwards all the PrimaryGroup member function we need in the filler.

Construct an empty holder, used to attach to later

Construct from an input file containing a FITS primary group hdu.

Throws an exception if the datatype is not Short, FitsLong or Float


Member Function Documentation

Attach to the input file, create the appropriate PrimaryGroup.

Throws an exception if the datatype is not Short, FitsLong or Float

Coordinate delta.

Definition at line 199 of file MSFitsInput.h.

References casa::PrimaryArray< TYPE >::cdelt(), pf, pl, and ps.

Coordinate reference pixel.

Definition at line 195 of file MSFitsInput.h.

References casa::PrimaryArray< TYPE >::crpix(), pf, pl, and ps.

Coordinate reference value.

Definition at line 191 of file MSFitsInput.h.

References casa::PrimaryArray< TYPE >::crval(), pf, pl, and ps.

Coordinate type.

Definition at line 187 of file MSFitsInput.h.

References casa::PrimaryArray< TYPE >::ctype(), pf, pl, and ps.

Detach from the input file.

Length of i'th axis.

Definition at line 183 of file MSFitsInput.h.

References casa::HeaderDataUnit::dim(), and hdu_p.

Number of dimensions.

Definition at line 179 of file MSFitsInput.h.

References casa::HeaderDataUnit::dims(), and hdu_p.

Number of groups.

Definition at line 215 of file MSFitsInput.h.

References casa::PrimaryGroup< TYPE >::gcount(), pf, pl, and ps.

Keyword of given type.

Definition at line 203 of file MSFitsInput.h.

References hdu_p, and casa::HeaderDataUnit::kw().

All keywords.

Definition at line 207 of file MSFitsInput.h.

References hdu_p, and casa::HeaderDataUnit::kwlist().

Advance to next keyword.

Definition at line 211 of file MSFitsInput.h.

References hdu_p, and casa::HeaderDataUnit::nextkw().

Double casa::MSPrimaryGroupHolder::operator() ( Int  i) const [inline]

Get group data with index i, scaled and converted to Double.

Definition at line 235 of file MSFitsInput.h.

References pf, pl, and ps.

Get i'th parameter.

Definition at line 231 of file MSFitsInput.h.

References casa::PrimaryGroup< TYPE >::parm(), pf, pl, and ps.

Number of parameters.

Definition at line 219 of file MSFitsInput.h.

References casa::PrimaryGroup< TYPE >::pcount(), pf, pl, and ps.

Char* casa::MSPrimaryGroupHolder::ptype ( Int  i) const [inline]

Parameter type.

Definition at line 223 of file MSFitsInput.h.

References pf, pl, ps, and casa::PrimaryGroup< TYPE >::ptype().

Read the next group.

Definition at line 227 of file MSFitsInput.h.

References pf, pl, ps, and casa::PrimaryGroup< TYPE >::read().


Member Data Documentation

Definition at line 239 of file MSFitsInput.h.

Referenced by dim(), dims(), kw(), kwlist(), and nextkw().

Definition at line 242 of file MSFitsInput.h.

Referenced by cdelt(), crpix(), crval(), ctype(), gcount(), operator()(), parm(), pcount(), ptype(), and read().

Definition at line 241 of file MSFitsInput.h.

Referenced by cdelt(), crpix(), crval(), ctype(), gcount(), operator()(), parm(), pcount(), ptype(), and read().

Definition at line 240 of file MSFitsInput.h.

Referenced by cdelt(), crpix(), crval(), ctype(), gcount(), operator()(), parm(), pcount(), ptype(), and read().


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