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

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

#include <CopyRecord.h>

List of all members.

Public Member Functions

 CopyRecordToTable (Table &outputTable, const RecordInterface &inputBuffer, const Vector< Int > inputMap)
 Set the mapping between fields and columns.
 CopyRecordToTable (const CopyRecordToTable &other)
 assignment constructor, reference semantics
 ~CopyRecordToTable ()
CopyRecordToTableoperator= (const CopyRecordToTable &other)
 assignment operator, reference semantics
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).

Private Member Functions

void clearAll ()
 CopyRecordToTable ()
 Undefined and inaccessible.

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.
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

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

Set the mapping between fields and columns.

In particular, inputMap(fieldNumber) -> columnNumber.

assignment constructor, reference semantics

Undefined and inaccessible.


Member Function Documentation

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

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

assignment operator, reference semantics


Member Data Documentation

Definition at line 132 of file CopyRecord.h.

Definition at line 133 of file CopyRecord.h.

Definition at line 138 of file CopyRecord.h.

Definition at line 139 of file CopyRecord.h.

Definition at line 137 of file CopyRecord.h.

Definition at line 136 of file CopyRecord.h.

Definition at line 135 of file CopyRecord.h.

Definition at line 134 of file CopyRecord.h.

Definition at line 140 of file CopyRecord.h.

Definition at line 123 of file CopyRecord.h.

Definition at line 124 of file CopyRecord.h.

Definition at line 129 of file CopyRecord.h.

Definition at line 130 of file CopyRecord.h.

Definition at line 128 of file CopyRecord.h.

Definition at line 127 of file CopyRecord.h.

Definition at line 126 of file CopyRecord.h.

Definition at line 125 of file CopyRecord.h.

Definition at line 131 of file CopyRecord.h.

Definition at line 113 of file CopyRecord.h.

Definition at line 114 of file CopyRecord.h.

Definition at line 119 of file CopyRecord.h.

Definition at line 120 of file CopyRecord.h.

Definition at line 118 of file CopyRecord.h.

Definition at line 117 of file CopyRecord.h.

Definition at line 116 of file CopyRecord.h.

Definition at line 115 of file CopyRecord.h.

Definition at line 121 of file CopyRecord.h.

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.

Definition at line 105 of file CopyRecord.h.

Definition at line 110 of file CopyRecord.h.

Definition at line 111 of file CopyRecord.h.

Definition at line 109 of file CopyRecord.h.

Definition at line 108 of file CopyRecord.h.

Definition at line 107 of file CopyRecord.h.

Definition at line 106 of file CopyRecord.h.

Definition at line 112 of file CopyRecord.h.


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