CalTable.h

Classes

CalTable -- CalTable: Calibration table access and creation (full description)

class CalTable

Interface

Public Members
CalTable()
virtual ~CalTable()
CalTable (const String& tableName, CalTableDesc& ctableDesc, Table::TableOption access = Table::New)
CalTable (const String& tableName, Table::TableOption access = Table::Old)
CalTable (const Table& table)
CalTable (const CalTable& other)
CalTable& operator= (const CalTable& other)
CalTable sort (const Block <String>& columnNames, Sort::Order order = Sort::Ascending, Sort::Option option = Sort::HeapSort)
void sort2 (const Block <String>& columnNames, Sort::Order order = Sort::Ascending, Sort::Option option = Sort::HeapSort)
CalTable select (const String& calSelect)
void select2 (const String& calSelect)
Int nRowMain() const
Int nRowDesc() const
Int nRowHistory() const
void addRowMain (uInt nrrow = 1, Bool initialize = False)
void addRowDesc (uInt nrrow = 1, Bool initialize = False)
void addRowHistory (uInt nrrow = 1, Bool initialize = False)
Record getRowMain (const Int& jrow)
Record getRowDesc (const Int& jrow)
Record getRowHistory (const Int& jrow)
void putRowMain (const Int& jrow, CalMainRecord& tableRec)
void putRowDesc (const Int& jrow, CalDescRecord& tableRec)
void putRowHistory (const Int& jrow, CalHistoryRecord& tableRec)
virtual Int maxAntenna()
Int numberTimeSlots (const Double& fracError)
Protected Members
void createCalTable (const String& tableName, CalTableDesc& ctableDesc, Table::TableOption access = Table::New)
void openCalTable (const String& tableName, Table::TableOption access = Table::Old)
Table& calMainAsTable()
Table& calDescAsTable()
Table& calHistoryAsTable()
const Table& calMainAsTable() const
const Table& calDescAsTable() const
const Table& calHistoryAsTable() const

Description

Prerequisite

Etymology

From "calibration" and "table".

Synopsis

The CalTable classes provide basic access to calibration tables. This includes the creation of calibration tables, sorting and selection capabilities, and basic data access. Specializations for baseline-based, time-variable and solvable VisJones types, and sub-types, are provided through inheritance.

Example


 

Motivation

This class is used by other calibration table accessors and iterators.

To Do

Member Description

CalTable()

Default null constructor, and destructor

virtual ~CalTable()

CalTable (const String& tableName, CalTableDesc& ctableDesc, Table::TableOption access = Table::New)

Construct from a specified table name, calibration table descriptor and table access option. Used for creating new tables.

CalTable (const String& tableName, Table::TableOption access = Table::Old)

Construct from a specified table name, and access option. Used for accessing existing tables.

CalTable (const Table& table)

Construct from an existing table object

CalTable (const CalTable& other)

Copy constructor

CalTable& operator= (const CalTable& other)

Assignment operator

CalTable sort (const Block <String>& columnNames, Sort::Order order = Sort::Ascending, Sort::Option option = Sort::HeapSort)

Sort (cal_main)

void sort2 (const Block <String>& columnNames, Sort::Order order = Sort::Ascending, Sort::Option option = Sort::HeapSort)

Sort (cal_main) IN PLACE

CalTable select (const String& calSelect)

Apply selection to the calibration table

void select2 (const String& calSelect)

Apply selection to the calibration table IN PLACE

Int nRowMain() const

Return number of rows in cal_main, cal_desc or cal_history

Int nRowDesc() const

Int nRowHistory() const

void addRowMain (uInt nrrow = 1, Bool initialize = False)

Add rows to cal_main, cal_desc or cal_history

void addRowDesc (uInt nrrow = 1, Bool initialize = False)

void addRowHistory (uInt nrrow = 1, Bool initialize = False)

Record getRowMain (const Int& jrow)

Get a row from cal_main, cal_desc or cal_history

Record getRowDesc (const Int& jrow)

Record getRowHistory (const Int& jrow)

void putRowMain (const Int& jrow, CalMainRecord& tableRec)

Put a row to cal_main, cal_desc or cal_history

void putRowDesc (const Int& jrow, CalDescRecord& tableRec)

void putRowHistory (const Int& jrow, CalHistoryRecord& tableRec)

virtual Int maxAntenna()

Return the maximum antenna number in the table

Int numberTimeSlots (const Double& fracError)

Return the number of unique time slots in the table

void createCalTable (const String& tableName, CalTableDesc& ctableDesc, Table::TableOption access = Table::New)

Create a new table

void openCalTable (const String& tableName, Table::TableOption access = Table::Old)

Open an existing table

Table& calMainAsTable()

Return cal_main and sub-tables as Table references

Table& calDescAsTable()

Table& calHistoryAsTable()

const Table& calMainAsTable() const

const Table& calDescAsTable() const

const Table& calHistoryAsTable() const