Source
xxxxxxxxxx
//# CalibratingVi2Factory.cc: Implementation of the CalibratingVi2Factory class.
//#
//# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
//# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
//# Copyright (C) European Southern Observatory, 2011, All rights reserved.
//#
//# This library is free software; you can redistribute it and/or
//# modify it under the terms of the GNU Lesser General Public
//# License as published by the Free software Foundation; either
//# version 2.1 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
//# Lesser General Public License for more details.
//#
//# You should have received a copy of the GNU Lesser General Public
//# License along with this library; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
//# MA 02111-1307 USA
//# $Id: $
namespace {
casa::vi::CalibratingVi2FactoryI* generateCViFac() {
return new casa::vi::CalibratingVi2Factory(); // A concrete one from the synthesis side
}
casa::vi::CalibratingVi2FactoryI* generateCViFac_byRec(casacore::MeasurementSet* ms,
const casacore::Record& calrec,
const casa::vi::IteratingParameters& iterpar) {
return new casa::vi::CalibratingVi2Factory(ms,calrec,iterpar); // A concrete one from the synthesis side
}
// FIXME each of the next two lines produces compiler warnings re: unused variables
// initCViFacGenerator and initCViFac_byRec_Generator
bool initCViFacGenerator = casa::vi::CalibratingVi2FactoryI::setGenerator(generateCViFac);
bool initCViFac_byRec_Generator = casa::vi::CalibratingVi2FactoryI::set_byRec_Generator(generateCViFac_byRec);
}
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
namespace vi { //# NAMESPACE VI - BEGIN
// -----------------------------------------------------------------------
CalibratingVi2Factory::CalibratingVi2Factory(MeasurementSet* ms,
const CalibratingParameters& calpar,
const IteratingParameters& iterpar) :
valid_p(true),
ms_p(ms),
calpar_p(calpar),
iterpar_p(iterpar)
{}
// -----------------------------------------------------------------------
CalibratingVi2Factory::CalibratingVi2Factory() :
valid_p(false),
ms_p(0),
calpar_p(),
iterpar_p(IteratingParameters())
{}
// -----------------------------------------------------------------------
CalibratingVi2Factory::CalibratingVi2Factory(MeasurementSet* ms,
const Record& calrec,
const IteratingParameters& iterpar) :
valid_p(true),
ms_p(ms),
calpar_p(calrec),
iterpar_p(iterpar)
{}
// -----------------------------------------------------------------------
CalibratingVi2Factory::CalibratingVi2Factory(MeasurementSet* ms,
const String& callib,
const IteratingParameters& iterpar) :
valid_p(true),
ms_p(ms),
calpar_p(callib),
iterpar_p(iterpar)
{}
// -----------------------------------------------------------------------
CalibratingVi2Factory::~CalibratingVi2Factory()