Source
xxxxxxxxxx
//# CalDescBuffer.cc: Implementation of CalDescBuffer.h
//# Copyright (C) 1996,1997,1998,2001,2002,2003
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id$
//----------------------------------------------------------------------------
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
//----------------------------------------------------------------------------
CalDescBuffer::CalDescBuffer() :
connectedToIter_p(false), calDescCol_p(NULL)
{
// Null constructor
// Output to private data:
// connectedToIter_p Bool true if connected to iterator
// calDescCol_p CalDescColumns* Ptr to cal_desc col accessor
// numSpw_p Vector<Int> No. spw
// numChan_p Vector<Int> No. chan
// numReceptors_p Vector<Int> No. receptors
// nJones_p Vector<Int> Jones matrix size
// spwId_p Matrix<Int> Spw. id.'s
// chanFreqMeas_p Array<MFrequency> Chan. freq. as Measure
// measFreqRef_p Vector<Int> Freq. measures ref.
// chanWidthQuant_p Array<Quantity> Chan. width as Quanta
// chanRange_p Array<Int> Chan. range
// polznType_p Matrix<String> Polzn. type
// jonesType_p Vector<String> Jones matrix type
// msName_p Vector<String> MeasurementSet name
// numSpwOK_p Bool No. spw cache ok
// numChanOK_p Bool No. chan cache ok
// numReceptorsOK_p Bool No. receptors cache ok
// nJonesOK_p Bool Jones matrix size cache ok
// spwIdOK_p Bool Spw. id.'s cache ok
// chanFreqMeasOK_p Bool Chan. freq. as Measure cache ok
// measFreqRefOK_p Bool Freq. measures ref. cache ok
// chanWidthQuantOK_p Bool Chan. width as Quanta cache ok
// chanRangeOK_p Bool Chan. range cache ok
// polznTypeOK_p Bool Polzn. type cache ok
// jonesTypeOK_p Bool Jones matrix type cache ok
// msNameOK_p Bool MeasurementSet name cache ok
//
// Invalidate cache
invalidate();
};
//----------------------------------------------------------------------------
CalDescBuffer::CalDescBuffer (CalIterBase& calIter) :
connectedToIter_p(true), calDescCol_p(NULL)
{
// Construct from a calibration table iterator
// Input:
// calIter CalIterBase& Calibration table iterator
// Output to private data:
// connectedToIter_p Bool true if connected to iterator
// calDescCol_p CalDescColumns* Ptr to cal_desc col accessor
// numSpw_p Vector<Int> No. spw
// numChan_p Vector<Int> No. chan
// numReceptors_p Vector<Int> No. receptors
// nJones_p Vector<Int> Jones matrix size
// spwId_p Matrix<Int> Spw. id.'s
// chanFreqMeas_p Array<MFrequency> Chan. freq. as Measure
// measFreqRef_p Vector<Int> Freq. measures ref.
// chanWidthQuant_p Array<Quantity> Chan. width as Quanta
// chanRange_p Array<Int> Chan. range