Source
*logger_p << LogIO::NORMAL << "==================================================================================== " << LogIO::POST;
//# FlagCalTableHandler.h: This file contains the implementation of the FlagCalTableHandler 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: $
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
//////////////////////////////////////////
/// FlagCalTableHandler implementation ///
//////////////////////////////////////////
// -----------------------------------------------------------------------
// Default constructor
// -----------------------------------------------------------------------
FlagCalTableHandler::FlagCalTableHandler(string tablename, uShort iterationApproach, Double timeInterval):
FlagDataHandler(tablename,iterationApproach,timeInterval)
{
selectedCalTable_p = NULL;
originalCalTable_p = NULL;
calTableInterface_p = NULL;
calBuffer_p = NULL;
calIter_p = NULL;
tableTye_p = CALIBRATION_TABLE;
}
// -----------------------------------------------------------------------
// Default destructor
// -----------------------------------------------------------------------
FlagCalTableHandler::~FlagCalTableHandler()
{
logger_p->origin(LogOrigin("FlagCalTableHandler",__FUNCTION__,WHERE));
*logger_p << LogIO::DEBUG1 << "FlagCalTableHandler::~FlagCalTableHandler()" << LogIO::POST;
if (calBuffer_p) delete calBuffer_p;
if (calIter_p) delete calIter_p;
if (calTableInterface_p) delete calTableInterface_p;
if (selectedCalTable_p) delete selectedCalTable_p;
if (originalCalTable_p) delete originalCalTable_p;