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)
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()
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.
assignment constructor, reference semantics
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).
Undefined and inaccessible
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 &)
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.
Copy from the record (which must still exist) to the
output record (which must also still exist).
Undefined and inaccessible
CopyRecordToRecord &operator=(const CopyRecordToRecord &)