casacore
|
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 () | |
RecordInterface & | row () |
Set the values for the current group. More... | |
void | write () |
Write the current group (row()). More... | |
FitsOutput * | writer () |
Don't delete this out from under us! More... | |
Private Member Functions | |
FITSGroupWriter () | |
Undefined and inaccessible. More... | |
FITSGroupWriter (const FITSGroupWriter &) | |
FITSGroupWriter & | operator= (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 |
FitsOutput * | writer_p |
uInt | nrows_written_p |
uInt | nrows_total_p |
PrimaryGroup< Float > * | group_p |
Record | row_p |
Int | error_count_p |
Simplified interface to create and write to FITS random groups.
Public interface
Like FITSTableWriter except that this must be the first HDU and all "columns" in the description must have the same type, i.e. float.
Definition at line 443 of file FITSTable.h.
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 | ( | ) |
|
private |
Undefined and inaccessible.
|
private |
|
private |
Checks error status of writer_p and group_p.
Cleans up and throws an exception if bad.
|
private |
|
inline |
void casacore::FITSGroupWriter::write | ( | ) |
Write the current group (row()).
|
inline |
Don't delete this out from under us!
Definition at line 469 of file FITSTable.h.
References writer_p.
|
private |
Definition at line 476 of file FITSTable.h.
|
private |
Definition at line 481 of file FITSTable.h.
|
private |
Definition at line 479 of file FITSTable.h.
|
private |
Definition at line 478 of file FITSTable.h.
|
private |
Definition at line 478 of file FITSTable.h.
|
private |
Definition at line 480 of file FITSTable.h.
Referenced by row().
|
private |
Definition at line 477 of file FITSTable.h.
Referenced by writer().