casa
$Rev:20696$
|
CalTable: Calibration table access and creation. More...
#include <CalTable.h>
Public Member Functions | |
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. | |
CalTable (const String &tableName, Table::TableOption access=Table::Old) | |
Construct from a specified table name, and access option. | |
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 | rowsPerCalDescId (Vector< Int > &rowspercdi) |
Return the number of rows per CalDescId. | |
Protected Member Functions | |
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 |
Private Attributes | |
Table * | itsMainTable |
Pointer to underlying cal_main Table object. | |
Table * | itsDescTable |
Pointers to the cal_desc and cal_history sub-tables. | |
Table * | itsHistoryTable |
Friends | |
class | ROCalMainColumns |
Friend class access from the ROCalMainColumns, ROCalDescColumns and ROCalHistoryColumns class hierarchies. | |
class | CalMainColumns |
class | ROCalDescColumns |
class | CalDescColumns |
class | ROCalHistoryColumns |
class | CalHistoryColumns |
CalTable: Calibration table access and creation.
Public interface
From "calibration" and "table".
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.
This class is used by other calibration table accessors and iterators.
Definition at line 81 of file CalTable.h.
Default null constructor, and destructor.
virtual casa::CalTable::~CalTable | ( | ) | [virtual] |
casa::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.
casa::CalTable::CalTable | ( | const String & | tableName, |
Table::TableOption | access = Table::Old |
||
) |
Construct from a specified table name, and access option.
Used for accessing existing tables.
casa::CalTable::CalTable | ( | const Table & | table | ) |
Construct from an existing table object.
casa::CalTable::CalTable | ( | const CalTable & | other | ) |
Copy constructor.
void casa::CalTable::addRowDesc | ( | uInt | nrrow = 1 , |
Bool | initialize = False |
||
) | [inline] |
Definition at line 130 of file CalTable.h.
References casa::Table::addRow(), and itsDescTable.
void casa::CalTable::addRowHistory | ( | uInt | nrrow = 1 , |
Bool | initialize = False |
||
) | [inline] |
Definition at line 132 of file CalTable.h.
References casa::Table::addRow(), and itsHistoryTable.
void casa::CalTable::addRowMain | ( | uInt | nrrow = 1 , |
Bool | initialize = False |
||
) | [inline] |
Add rows to cal_main, cal_desc or cal_history.
Definition at line 128 of file CalTable.h.
References casa::Table::addRow(), and itsMainTable.
Table& casa::CalTable::calDescAsTable | ( | ) | [inline, protected] |
Definition at line 165 of file CalTable.h.
References itsDescTable.
Referenced by casa::ROCalDescColumns::calDescAsTable(), and casa::CalDescColumns::calDescAsTable().
const Table& casa::CalTable::calDescAsTable | ( | ) | const [inline, protected] |
Definition at line 168 of file CalTable.h.
References itsDescTable.
Table& casa::CalTable::calHistoryAsTable | ( | ) | [inline, protected] |
Definition at line 166 of file CalTable.h.
References itsHistoryTable.
Referenced by casa::ROCalHistoryColumns::calHistoryAsTable(), and casa::CalHistoryColumns::calHistoryAsTable().
const Table& casa::CalTable::calHistoryAsTable | ( | ) | const [inline, protected] |
Definition at line 169 of file CalTable.h.
Table& casa::CalTable::calMainAsTable | ( | ) | [inline, protected] |
Return cal_main and sub-tables as Table references.
Definition at line 164 of file CalTable.h.
References itsMainTable.
Referenced by casa::ROCalMainColumns::asTable(), and casa::CalMainColumns::asTable().
const Table& casa::CalTable::calMainAsTable | ( | ) | const [inline, protected] |
Definition at line 167 of file CalTable.h.
References itsMainTable.
void casa::CalTable::createCalTable | ( | const String & | tableName, |
CalTableDesc & | ctableDesc, | ||
Table::TableOption | access = Table::New |
||
) | [protected] |
Create a new table.
Record casa::CalTable::getRowDesc | ( | const Int & | jrow | ) |
Record casa::CalTable::getRowHistory | ( | const Int & | jrow | ) |
Record casa::CalTable::getRowMain | ( | const Int & | jrow | ) |
Get a row from cal_main, cal_desc or cal_history.
virtual Int casa::CalTable::maxAntenna | ( | ) | [virtual] |
Return the maximum antenna number in the table.
Int casa::CalTable::nRowDesc | ( | ) | const |
Int casa::CalTable::nRowHistory | ( | ) | const |
Int casa::CalTable::nRowMain | ( | ) | const |
Return number of rows in cal_main, cal_desc or cal_history.
Int casa::CalTable::numberTimeSlots | ( | const Double & | fracError | ) |
Return the number of unique time slots in the table.
void casa::CalTable::openCalTable | ( | const String & | tableName, |
Table::TableOption | access = Table::Old |
||
) | [protected] |
Open an existing table.
void casa::CalTable::putRowDesc | ( | const Int & | jrow, |
CalDescRecord & | tableRec | ||
) |
void casa::CalTable::putRowHistory | ( | const Int & | jrow, |
CalHistoryRecord & | tableRec | ||
) |
void casa::CalTable::putRowMain | ( | const Int & | jrow, |
CalMainRecord & | tableRec | ||
) |
Put a row to cal_main, cal_desc or cal_history.
void casa::CalTable::rowsPerCalDescId | ( | Vector< Int > & | rowspercdi | ) |
Return the number of rows per CalDescId.
CalTable casa::CalTable::select | ( | const String & | calSelect | ) |
Apply selection to the calibration table.
void casa::CalTable::select2 | ( | const String & | calSelect | ) |
Apply selection to the calibration table IN PLACE.
CalTable casa::CalTable::sort | ( | const Block< String > & | columnNames, |
Sort::Order | order = Sort::Ascending , |
||
Sort::Option | option = Sort::HeapSort |
||
) |
Sort (cal_main)
void casa::CalTable::sort2 | ( | const Block< String > & | columnNames, |
Sort::Order | order = Sort::Ascending , |
||
Sort::Option | option = Sort::HeapSort |
||
) |
Sort (cal_main) IN PLACE.
friend class CalDescColumns [friend] |
Definition at line 176 of file CalTable.h.
friend class CalHistoryColumns [friend] |
Definition at line 178 of file CalTable.h.
friend class CalMainColumns [friend] |
Definition at line 174 of file CalTable.h.
friend class ROCalDescColumns [friend] |
Definition at line 175 of file CalTable.h.
friend class ROCalHistoryColumns [friend] |
Definition at line 177 of file CalTable.h.
friend class ROCalMainColumns [friend] |
Friend class access from the ROCalMainColumns, ROCalDescColumns and ROCalHistoryColumns class hierarchies.
Definition at line 169 of file CalTable.h.
Table* casa::CalTable::itsDescTable [private] |
Pointers to the cal_desc and cal_history sub-tables.
Definition at line 185 of file CalTable.h.
Referenced by addRowDesc(), and calDescAsTable().
Table* casa::CalTable::itsHistoryTable [private] |
Definition at line 186 of file CalTable.h.
Referenced by addRowHistory(), and calHistoryAsTable().
Table* casa::CalTable::itsMainTable [private] |
Pointer to underlying cal_main Table object.
Definition at line 182 of file CalTable.h.
Referenced by addRowMain(), and calMainAsTable().