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

A Table intended to hold a MeasurementSet PROCESSOR table. More...

#include <MSProcessor.h>

Inheritance diagram for casa::MSProcessor:
casa::MSProcessorEnums casa::MSTable< MSProcessorEnums::PredefinedColumns, MSProcessorEnums::PredefinedKeywords > casa::Table

List of all members.

Public Member Functions

 MSProcessor ()
 This constructs an empty MSProcessor.
 ~MSProcessor ()
 As with tables, the destructor writes the table if necessary.
MSProcessoroperator= (const MSProcessor &)
 Assignment operator, reference semantics.
MSProcessor referenceCopy (const String &newTableName, const Block< String > &writableColumns) const
 Make a special copy of this Table which references all columns from this Table except those mentioned; those are empty and writable.
 MSProcessor (const String &tableName, TableOption=Table::Old)
 These constructors mirror the Table ones with additional checking on validity (verifying that the MSProcessor will have the required columns and keywords) An exception is thrown if the constructed Table is not a valid MSProcessor.
 MSProcessor (const String &tableName, const String &tableDescName, TableOption=Table::Old)
 MSProcessor (SetupNewTable &newTab, uInt nrrow=0, Bool initialize=False)
 MSProcessor (const Table &table)
 MSProcessor (const MSProcessor &other)

Static Public Member Functions

static void init ()
 Initialize the statics appropriately.

Private Attributes

Bool hasBeenDestroyed_p
 required by the need to throw an exception in the destructor

Detailed Description

A Table intended to hold a MeasurementSet PROCESSOR table.

Intended use:

Public interface

Review Status

Reviewed By:
Bob Garwood
Date Reviewed:
1997/02/01

Prerequisite

Etymology

MSProcessor stands for the MeasurementSet Processor table.

Synopsis

An MSProcessor is a table intended to hold the PROCESSOR table for the MeasurementSet. It has an identical set of member functions as the main MeasurementSet class. For further info and examples see the MeasurementSet class.

Example

See the MeasurementSet for an example of how to access and use this class.

Motivation

It was found that subtables and the main table of the MeasurementSet have a lot in common, therefore they derive their interface from the same base class. Each subtable has its own class to keep the enum definitions and conversion functions in separate scopes.

Definition at line 77 of file MSProcessor.h.


Constructor & Destructor Documentation

This constructs an empty MSProcessor.

These constructors mirror the Table ones with additional checking on validity (verifying that the MSProcessor will have the required columns and keywords) An exception is thrown if the constructed Table is not a valid MSProcessor.

  <h3>Thrown Exceptions</h3><ul>    <li> AipsError
  </ul>

casa::MSProcessor::MSProcessor ( const String tableName,
const String tableDescName,
TableOption  = Table::Old 
)
casa::MSProcessor::MSProcessor ( SetupNewTable newTab,
uInt  nrrow = 0,
Bool  initialize = False 
)

As with tables, the destructor writes the table if necessary.

Additional checking is done here to verify that all required columns are still present. If it is NOT valid, it will write the table and then throw an exception.

Thrown Exceptions


Member Function Documentation

static void casa::MSProcessor::init ( ) [static]

Initialize the statics appropriately.

This does not need to be called by users, it is called by the implementation class MSTableImpl.

MSProcessor& casa::MSProcessor::operator= ( const MSProcessor )

Assignment operator, reference semantics.

MSProcessor casa::MSProcessor::referenceCopy ( const String newTableName,
const Block< String > &  writableColumns 
) const

Make a special copy of this Table which references all columns from this Table except those mentioned; those are empty and writable.

Each forwarded column has the same writable status as the underlying column. The mentioned columns all use the AipsIO storage manager. This function is inherited from MSTable and unlikely to be of use, except in the class MeasurementSet (see comment there)..

Reimplemented from casa::MSTable< MSProcessorEnums::PredefinedColumns, MSProcessorEnums::PredefinedKeywords >.


Member Data Documentation

required by the need to throw an exception in the destructor

Definition at line 132 of file MSProcessor.h.


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