casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::FITSGroupWriter Class Reference

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

#include <FITSTable.h>

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. More...
 
 ~FITSGroupWriter ()
 
RecordInterfacerow ()
 Set the values for the current group. More...
 
void write ()
 Write the current group (row()). More...
 
FitsOutputwriter ()
 Don't delete this out from under us! More...
 

Private Member Functions

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

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

casacore::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()

casacore::FITSGroupWriter::~FITSGroupWriter ( )
casacore::FITSGroupWriter::FITSGroupWriter ( )
private

Undefined and inaccessible.

casacore::FITSGroupWriter::FITSGroupWriter ( const FITSGroupWriter )
private

Member Function Documentation

void casacore::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& casacore::FITSGroupWriter::operator= ( const FITSGroupWriter )
private
RecordInterface& casacore::FITSGroupWriter::row ( )
inline

Set the values for the current group.

Definition at line 463 of file FITSTable.h.

References row_p.

void casacore::FITSGroupWriter::write ( )

Write the current group (row()).

FitsOutput* casacore::FITSGroupWriter::writer ( )
inline

Don't delete this out from under us!

Definition at line 469 of file FITSTable.h.

References writer_p.

Member Data Documentation

Bool casacore::FITSGroupWriter::delete_writer_p
private

Definition at line 476 of file FITSTable.h.

Int casacore::FITSGroupWriter::error_count_p
private

Definition at line 481 of file FITSTable.h.

PrimaryGroup<Float>* casacore::FITSGroupWriter::group_p
private

Definition at line 479 of file FITSTable.h.

uInt casacore::FITSGroupWriter::nrows_total_p
private

Definition at line 478 of file FITSTable.h.

uInt casacore::FITSGroupWriter::nrows_written_p
private

Definition at line 478 of file FITSTable.h.

Record casacore::FITSGroupWriter::row_p
private

Definition at line 480 of file FITSTable.h.

Referenced by row().

FitsOutput* casacore::FITSGroupWriter::writer_p
private

Definition at line 477 of file FITSTable.h.

Referenced by writer().


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