CopyRecord.h

Classes

CopyRecordToTable -- Copies fields from a Record to columns of a Table. (full description)
CopyRecordToRecord -- Copies fields between Records, possibly to fields with another name. (full description)

class CopyRecordToTable

Interface

Public Members
CopyRecordToTable(Table &outputTable, const RecordInterface &inputBuffer, const Vector<Int> inputMap)
CopyRecordToTable(const CopyRecordToTable &other)
~CopyRecordToTable()
CopyRecordToTable &operator=(const CopyRecordToTable &other)
void copy(uInt rownr)
Private Members
void clearAll()
CopyRecordToTable()

Description

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.

Member Description

CopyRecordToTable(Table &outputTable, const RecordInterface &inputBuffer, const Vector<Int> inputMap)

Set the mapping between fields and columns. In particular, inputMap(fieldNumber) -> columnNumber.

CopyRecordToTable(const CopyRecordToTable &other)

assignment constructor, reference semantics

~CopyRecordToTable()

CopyRecordToTable &operator=(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).

void clearAll()

CopyRecordToTable()

Undefined and inaccessible


class CopyRecordToRecord

Interface

Public Members
CopyRecordToRecord(RecordInterface &outputBuffer, const RecordInterface &inputBuffer, const Vector<Int> inputMap)
~CopyRecordToRecord()
void copy()
Private Members
CopyRecordToRecord()
CopyRecordToRecord(const CopyRecordToRecord &)
CopyRecordToRecord &operator=(const CopyRecordToRecord &)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Member Description

CopyRecordToRecord(RecordInterface &outputBuffer, const RecordInterface &inputBuffer, const Vector<Int> inputMap)

Set the mapping between fields and columns. In particular, inputMap(fieldNumber) -> outputFieldNumber.

~CopyRecordToRecord()

void copy()

Copy from the record (which must still exist) to the output record (which must also still exist).

CopyRecordToRecord()

Undefined and inaccessible

CopyRecordToRecord(const CopyRecordToRecord &)

CopyRecordToRecord &operator=(const CopyRecordToRecord &)