Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1MSPrimaryGroupHolder.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 23:24:22 2011
Кодировка:

Поисковые слова: южная атлантическая аномалия
casacore: casa::MSPrimaryGroupHolder Class Reference
Public Member Functions | Private Attributes

casa::MSPrimaryGroupHolder Class Reference
[MSFits_module_internal_classes]

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 62 of file MSFitsInput.h.


Constructor & Destructor Documentation

casa::MSPrimaryGroupHolder::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.

Construct an empty holder, used to attach to later

casa::MSPrimaryGroupHolder::MSPrimaryGroupHolder ( FitsInput infile  ) 

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

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

casa::MSPrimaryGroupHolder::~MSPrimaryGroupHolder (  ) 

Member Function Documentation

void casa::MSPrimaryGroupHolder::attach ( FitsInput infile  ) 

Attach to the input file, create the appropriate PrimaryGroup.

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

Double casa::MSPrimaryGroupHolder::cdelt ( Int  i  )  [inline]

Coordinate delta.

Definition at line 107 of file MSFitsInput.h.

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

Double casa::MSPrimaryGroupHolder::crpix ( Int  i  )  [inline]

Coordinate reference pixel.

Definition at line 103 of file MSFitsInput.h.

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

Double casa::MSPrimaryGroupHolder::crval ( Int  i  )  [inline]

Coordinate reference value.

Definition at line 99 of file MSFitsInput.h.

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

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

Coordinate type.

Definition at line 95 of file MSFitsInput.h.

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

void casa::MSPrimaryGroupHolder::detach (  ) 

Detach from the input file.

Int casa::MSPrimaryGroupHolder::dim ( Int  i  )  [inline]

Length of i'th axis.

Definition at line 91 of file MSFitsInput.h.

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

Int casa::MSPrimaryGroupHolder::dims (  )  [inline]

Number of dimensions.

Definition at line 87 of file MSFitsInput.h.

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

Int casa::MSPrimaryGroupHolder::gcount (  )  const [inline]

Number of groups.

Definition at line 123 of file MSFitsInput.h.

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

const FitsKeyword* casa::MSPrimaryGroupHolder::kw ( const FITS::ReservedName n  )  [inline]

Keyword of given type.

Definition at line 111 of file MSFitsInput.h.

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

ConstFitsKeywordList& casa::MSPrimaryGroupHolder::kwlist (  )  [inline]

All keywords.

Definition at line 115 of file MSFitsInput.h.

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

const FitsKeyword* casa::MSPrimaryGroupHolder::nextkw (