casa  5.7.0-16
 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::CopyRecordToTable Class Reference

Copies fields from a Record to columns of a Table. More...

#include <CopyRecord.h>

Public Member Functions

 CopyRecordToTable (Table &outputTable, const RecordInterface &inputBuffer, const Vector< Int > inputMap)
 Set the mapping between fields and columns. More...
 
 CopyRecordToTable (const CopyRecordToTable &other)
 assignment constructor, reference semantics More...
 
 ~CopyRecordToTable ()
 
CopyRecordToTableoperator= (const CopyRecordToTable &other)
 assignment operator, reference semantics More...
 
void copy (uInt rownr)
 Copy from the record (which must still exist) to the given row number of the table (which must also still exist). More...
 

Private Member Functions

void clearAll ()
 
 CopyRecordToTable ()
 Undefined and inaccessible. More...
 

Private Attributes

PtrBlock< ScalarColumn< Bool > * > table_bool
 We could just have a TableColumn for scalars, but we'd need all of the array types anyway. More...
 
PtrBlock< ScalarColumn< uChar > * > table_char
 
PtrBlock< ScalarColumn< Short > * > table_short
 
PtrBlock< ScalarColumn< Int > * > table_int
 
PtrBlock< ScalarColumn< Float > * > table_float
 
PtrBlock< ScalarColumn< Double > * > table_double
 
PtrBlock< ScalarColumn
< Complex > * > 
table_complex
 
PtrBlock< ScalarColumn
< DComplex > * > 
table_dcomplex
 
PtrBlock< ScalarColumn< String > * > table_string
 
PtrBlock< ArrayColumn< Bool > * > table_array_bool
 
PtrBlock< ArrayColumn< uChar > * > table_array_char
 
PtrBlock< ArrayColumn< Short > * > table_array_short
 
PtrBlock< ArrayColumn< Int > * > table_array_int
 
PtrBlock< ArrayColumn< Float > * > table_array_float
 
PtrBlock< ArrayColumn< Double > * > table_array_double
 
PtrBlock< ArrayColumn< Complex > * > table_array_complex
 
PtrBlock< ArrayColumn
< DComplex > * > 
table_array_dcomplex
 
PtrBlock< ArrayColumn< String > * > table_array_string
 
Block< RORecordFieldPtr< Bool > > record_bool
 
Block< RORecordFieldPtr< uChar > > record_char
 
Block< RORecordFieldPtr< Short > > record_short
 
Block< RORecordFieldPtr< Int > > record_int
 
Block< RORecordFieldPtr< Float > > record_float
 
Block< RORecordFieldPtr< Double > > record_double
 
Block< RORecordFieldPtr
< Complex > > 
record_complex
 
Block< RORecordFieldPtr
< DComplex > > 
record_dcomplex
 
Block< RORecordFieldPtr< String > > record_string
 
Block< RORecordFieldPtr< Array
< Bool > > > 
record_array_bool
 
Block< RORecordFieldPtr< Array
< uChar > > > 
record_array_char
 
Block< RORecordFieldPtr< Array
< Short > > > 
record_array_short
 
Block< RORecordFieldPtr< Array
< Int > > > 
record_array_int
 
Block< RORecordFieldPtr< Array
< Float > > > 
record_array_float
 
Block< RORecordFieldPtr< Array
< Double > > > 
record_array_double
 
Block< RORecordFieldPtr< Array
< Complex > > > 
record_array_complex
 
Block< RORecordFieldPtr< Array
< DComplex > > > 
record_array_dcomplex
 
Block< RORecordFieldPtr< Array
< String > > > 
record_array_string
 

Detailed Description

Copies fields from a Record to columns of a Table.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

This class should be generalized, and made better. It is the analog of RowCopier, i.e. it copies all the fields from some Record to certain columns of a table. The mapping from fields to columns occurs at construction of the CopyRecordToTable object.

Definition at line 80 of file CopyRecord.h.

Constructor & Destructor Documentation

casacore::CopyRecordToTable::CopyRecordToTable ( Table outputTable,
const RecordInterface inputBuffer,
const Vector< Int inputMap 
)

Set the mapping between fields and columns.

In particular, inputMap(fieldNumber) -> columnNumber.

casacore::CopyRecordToTable::CopyRecordToTable ( const CopyRecordToTable other)

assignment constructor, reference semantics

casacore::CopyRecordToTable::~CopyRecordToTable ( )
casacore::CopyRecordToTable::CopyRecordToTable ( )
private

Undefined and inaccessible.

Member Function Documentation

void casacore::CopyRecordToTable::clearAll ( )
private
void casacore::CopyRecordToTable::copy ( uInt  rownr)

Copy from the record (which must still exist) to the given row number of the table (which must also still exist).

CopyRecordToTable& casacore::CopyRecordToTable::operator= ( const CopyRecordToTable other)

assignment operator, reference semantics

Member Data Documentation

Block<RORecordFieldPtr<Array<Bool> > > casacore::CopyRecordToTable::record_array_bool
private

Definition at line 132 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<uChar> > > casacore::CopyRecordToTable::record_array_char
private

Definition at line 133 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<Complex> > > casacore::CopyRecordToTable::record_array_complex
private

Definition at line 138 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<DComplex> > > casacore::CopyRecordToTable::record_array_dcomplex
private

Definition at line 139 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<Double> > > casacore::CopyRecordToTable::record_array_double
private

Definition at line 137 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<Float> > > casacore::CopyRecordToTable::record_array_float
private

Definition at line 136 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<Int> > > casacore::CopyRecordToTable::record_array_int
private

Definition at line 135 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<Short> > > casacore::CopyRecordToTable::record_array_short
private

Definition at line 134 of file CopyRecord.h.

Block<RORecordFieldPtr<Array<String> > > casacore::CopyRecordToTable::record_array_string
private

Definition at line 140 of file CopyRecord.h.

Block<RORecordFieldPtr<Bool> > casacore::CopyRecordToTable::record_bool
private

Definition at line 123 of file CopyRecord.h.

Block<RORecordFieldPtr<uChar> > casacore::CopyRecordToTable::record_char
private

Definition at line 124 of file CopyRecord.h.

Block<RORecordFieldPtr<Complex> > casacore::CopyRecordToTable::record_complex
private

Definition at line 129 of file CopyRecord.h.

Block<RORecordFieldPtr<DComplex> > casacore::CopyRecordToTable::record_dcomplex
private

Definition at line 130 of file CopyRecord.h.

Block<RORecordFieldPtr<Double> > casacore::CopyRecordToTable::record_double
private

Definition at line 128 of file CopyRecord.h.

Block<RORecordFieldPtr<Float> > casacore::CopyRecordToTable::record_float
private

Definition at line 127 of file CopyRecord.h.

Block<RORecordFieldPtr<Int> > casacore::CopyRecordToTable::record_int
private

Definition at line 126 of file CopyRecord.h.

Block<RORecordFieldPtr<Short> > casacore::CopyRecordToTable::record_short
private

Definition at line 125 of file CopyRecord.h.

Block<RORecordFieldPtr<String> > casacore::CopyRecordToTable::record_string
private

Definition at line 131 of file CopyRecord.h.

PtrBlock<ArrayColumn<Bool> *> casacore::CopyRecordToTable::table_array_bool
private

Definition at line 113 of file CopyRecord.h.

PtrBlock<ArrayColumn<uChar> *> casacore::CopyRecordToTable::table_array_char
private

Definition at line 114 of file CopyRecord.h.

PtrBlock<ArrayColumn<Complex> *> casacore::CopyRecordToTable::table_array_complex
private

Definition at line 119 of file CopyRecord.h.

PtrBlock<ArrayColumn<DComplex> *> casacore::CopyRecordToTable::table_array_dcomplex
private

Definition at line 120 of file CopyRecord.h.

PtrBlock<ArrayColumn<Double> *> casacore::CopyRecordToTable::table_array_double
private

Definition at line 118 of file CopyRecord.h.

PtrBlock<ArrayColumn<Float> *> casacore::CopyRecordToTable::table_array_float
private

Definition at line 117 of file CopyRecord.h.

PtrBlock<ArrayColumn<Int> *> casacore::CopyRecordToTable::table_array_int
private

Definition at line 116 of file CopyRecord.h.

PtrBlock<ArrayColumn<Short> *> casacore::CopyRecordToTable::table_array_short
private

Definition at line 115 of file CopyRecord.h.

PtrBlock<ArrayColumn<String> *> casacore::CopyRecordToTable::table_array_string
private

Definition at line 121 of file CopyRecord.h.

PtrBlock<ScalarColumn<Bool> *> casacore::CopyRecordToTable::table_bool
private

We could just have a TableColumn for scalars, but we'd need all of the array types anyway.

Definition at line 104 of file CopyRecord.h.

PtrBlock<ScalarColumn<uChar> *> casacore::CopyRecordToTable::table_char
private

Definition at line 105 of file CopyRecord.h.

PtrBlock<ScalarColumn<Complex> *> casacore::CopyRecordToTable::table_complex
private

Definition at line 110 of file CopyRecord.h.

PtrBlock<ScalarColumn<DComplex> *> casacore::CopyRecordToTable::table_dcomplex
private

Definition at line 111 of file CopyRecord.h.

PtrBlock<ScalarColumn<Double> *> casacore::CopyRecordToTable::table_double
private

Definition at line 109 of file CopyRecord.h.

PtrBlock<ScalarColumn<Float> *> casacore::CopyRecordToTable::table_float
private

Definition at line 108 of file CopyRecord.h.

PtrBlock<ScalarColumn<Int> *> casacore::CopyRecordToTable::table_int
private

Definition at line 107 of file CopyRecord.h.

PtrBlock<ScalarColumn<Short> *> casacore::CopyRecordToTable::table_short
private

Definition at line 106 of file CopyRecord.h.

PtrBlock<ScalarColumn<String> *> casacore::CopyRecordToTable::table_string
private

Definition at line 112 of file CopyRecord.h.


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