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

Simplified interface to create and write to FITS random groups. More...

#include <FITSTable.h>

List of all members.

Public Member Functions

 FITSGroupWriter (const String &fileName, const RecordDesc &description, uInt nrows, const Record &extraKeywords, Bool freeOutput=True)
 Since this must always be the first HDU, there is no point in constructing it with a FitsOutput.
 ~FITSGroupWriter ()
RecordInterfacerow ()
 Set the values for the current group.
void write ()
 Write the current group (row()).
FitsOutputwriter ()
 Don't delete this out from under us!

Private Member Functions

 FITSGroupWriter ()
 Undefined and inaccessible.
 FITSGroupWriter (const FITSGroupWriter &)
FITSGroupWriteroperator= (const FITSGroupWriter &)
void check_error (const char *extra_info=0)
 Checks error status of writer_p and group_p.

Private Attributes

Bool delete_writer_p
FitsOutputwriter_p
uInt nrows_written_p
uInt nrows_total_p
PrimaryGroup< Float > * group_p
Record row_p
Int error_count_p

Detailed Description

Simplified interface to create and write to FITS random groups.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Like FITSTableWriter except that this must be the first HDU and all "columns" in the description must have the same type, i.e. float.

Example

Motivation

To Do

Definition at line 443 of file FITSTable.h.


Constructor & Destructor Documentation

casa::FITSGroupWriter::FITSGroupWriter ( const String fileName,
const RecordDesc description,
uInt  nrows,
const Record extraKeywords,
Bool  freeOutput = True 
)

Since this must always be the first HDU, there is no point in constructing it with a FitsOutput.

description indicates the names of the random groups parameters. nrows is a synonym for ngroups. Use extraKeywords to indicate any keywords not automatically created (SIMPLE, BITPIX, NAXIS*, EXTEND, BLOCKED, GROUPS, PCOUNT, GOUNT, ORIGIN, END). If freeOutput is True, file will be deleted by the destructor. You might not want this to happen if you are going to write any extensions to the same fits file. You can get the FitsOutput used here from write()

Undefined and inaccessible.


Member Function Documentation

void casa::FITSGroupWriter::check_error ( const char *  extra_info = 0) [private]

Checks error status of writer_p and group_p.

Cleans up and throws an exception if bad.

FITSGroupWriter& casa::FITSGroupWriter::operator= ( const FITSGroupWriter ) [private]

Set the values for the current group.

Definition at line 463 of file FITSTable.h.

References row_p.

Write the current group (row()).

Don't delete this out from under us!

Definition at line 469 of file FITSTable.h.

References writer_p.


Member Data Documentation

Definition at line 476 of file FITSTable.h.

Definition at line 481 of file FITSTable.h.

Definition at line 479 of file FITSTable.h.

Definition at line 478 of file FITSTable.h.

Definition at line 478 of file FITSTable.h.

Definition at line 480 of file FITSTable.h.

Referenced by row().

Definition at line 477 of file FITSTable.h.

Referenced by writer().


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