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

CalTable: Calibration table access and creation. More...

#include <CalTable2.h>

List of all members.

Public Member Functions

 CalTable2 ()
 Default null constructor, and destructor.
virtual ~CalTable2 ()
 CalTable2 (const String &tableName, CalTableDesc2 &ctableDesc, Table::TableOption access=Table::New)
 Construct from a specified table name, calibration table descriptor and table access option.
 CalTable2 (const String &tableName, Table::TableOption access=Table::Old)
 Construct from a specified table name, and access option.
 CalTable2 (const Table &table)
 Construct from an existing table object.
 CalTable2 (const CalTable2 &other)
 Copy constructor.
const Int parType ()
CalTable2operator= (const CalTable2 &other)
 Assignment operator.
CalTable2 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.
CalTable2 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, CalTableDesc2 &ctableDesc, Table::TableOption access=Table::New)
 Create a new table.
void openCalTable (const String &tableName, Table::TableOption access=Table::Old)
 Open an existing table.
TablecalMainAsTable ()
 Return cal_main and sub-tables as Table references.
TablecalDescAsTable ()
TablecalHistoryAsTable ()
const TablecalMainAsTable () const
const TablecalDescAsTable () const
const TablecalHistoryAsTable () const

Private Attributes

TableitsMainTable
 Pointer to underlying cal_main Table object.
TableitsDescTable
 Pointers to the cal_desc and cal_history sub-tables.
TableitsHistoryTable
Int parType_

Friends

class ROCalHistoryColumns
 Friend class access from the ROCalMainColumns, ROCalDescColumns and ROCalHistoryColumns class hierarchies friend class ROCalMainColumns2; friend class CalMainColumns2; friend class ROCalDescColumns2; friend class CalDescColumns2;.
class CalHistoryColumns

Detailed Description

CalTable: Calibration table access and creation.

Intended use:

Public interface

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.

Definition at line 81 of file CalTable2.h.


Constructor & Destructor Documentation

Default null constructor, and destructor.

virtual casa::CalTable2::~CalTable2 ( ) [virtual]
casa::CalTable2::CalTable2 ( const String tableName,
CalTableDesc2 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::CalTable2::CalTable2 ( const String tableName,
Table::TableOption  access = Table::Old 
)

Construct from a specified table name, and access option.

Used for accessing existing tables.

casa::CalTable2::CalTable2 ( const Table table)

Construct from an existing table object.

Copy constructor.


Member Function Documentation

void casa::CalTable2::addRowDesc ( uInt  nrrow = 1,
Bool  initialize = False 
) [inline]

Definition at line 132 of file CalTable2.h.

References casa::Table::addRow(), and itsDescTable.

void casa::CalTable2::addRowHistory ( uInt  nrrow = 1,
Bool  initialize = False 
) [inline]

Definition at line 134 of file CalTable2.h.

References casa::Table::addRow(), and itsHistoryTable.

void casa::CalTable2::addRowMain ( uInt  nrrow = 1,
Bool  initialize = False 
) [inline]

Add rows to cal_main, cal_desc or cal_history.

Definition at line 130 of file CalTable2.h.

References casa::Table::addRow(), and itsMainTable.

const Table& casa::CalTable2::calDescAsTable ( ) const [inline]

Definition at line 166 of file CalTable2.h.

References itsDescTable.

Definition at line 164 of file CalTable2.h.

References itsHistoryTable.

const Table& casa::CalTable2::calHistoryAsTable ( ) const [inline]

Definition at line 167 of file CalTable2.h.

Return cal_main and sub-tables as Table references.

Definition at line 162 of file CalTable2.h.

References itsMainTable.

Referenced by casa::CalMainColumns2< Complex >::asTable(), and casa::ROCalMainColumns2< T >::asTable().

const Table& casa::CalTable2::calMainAsTable ( ) const [inline]

Definition at line 165 of file CalTable2.h.

References itsMainTable.

void casa::CalTable2::createCalTable ( const String tableName,
CalTableDesc2 ctableDesc,
Table::TableOption  access = Table::New 
)

Create a new table.

Get a row from cal_main, cal_desc or cal_history.

virtual Int casa::CalTable2::maxAntenna ( ) [virtual]

Return the maximum antenna number in the table.

Return number of rows in cal_main, cal_desc or cal_history.

Return the number of unique time slots in the table.

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

Open an existing table.

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

Assignment operator.

const Int casa::CalTable2::parType ( ) [inline]

Definition at line 104 of file CalTable2.h.

References parType_.

void casa::CalTable2::putRowDesc ( const Int jrow,
CalDescRecord tableRec 
)
void casa::CalTable2::putRowHistory ( const Int jrow,
CalHistoryRecord tableRec 
)
void casa::CalTable2::putRowMain ( const Int jrow,
CalMainRecord tableRec 
)

Put a row to cal_main, cal_desc or cal_history.

CalTable2 casa::CalTable2::select ( const String calSelect)

Apply selection to the calibration table.

void casa::CalTable2::select2 ( const String calSelect)

Apply selection to the calibration table IN PLACE.

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

Sort (cal_main)

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

Sort (cal_main) IN PLACE.


Friends And Related Function Documentation

friend class CalHistoryColumns [friend]

Definition at line 177 of file CalTable2.h.

friend class ROCalHistoryColumns [friend]

Friend class access from the ROCalMainColumns, ROCalDescColumns and ROCalHistoryColumns class hierarchies friend class ROCalMainColumns2; friend class CalMainColumns2; friend class ROCalDescColumns2; friend class CalDescColumns2;.

Definition at line 167 of file CalTable2.h.


Member Data Documentation

Pointers to the cal_desc and cal_history sub-tables.

Definition at line 184 of file CalTable2.h.

Referenced by addRowDesc(), and calDescAsTable().

Definition at line 185 of file CalTable2.h.

Referenced by addRowHistory(), and calHistoryAsTable().

Pointer to underlying cal_main Table object.

Definition at line 181 of file CalTable2.h.

Referenced by addRowMain(), and calMainAsTable().

Definition at line 186 of file CalTable2.h.

Referenced by parType().


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