LCOV - code coverage report
Current view: top level - synthesis/CalTables - CalHistRecord.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 41 0.0 %
Date: 2024-11-06 17:42:47 Functions: 0 12 0.0 %

          Line data    Source code
       1             : //# CalHistRecord.cc: Implementation of CalHistRecord.h
       2             : //# Copyright (C) 1996,1997,1998,2003
       3             : //# Associated Universities, Inc. Washington DC, USA.
       4             : //#
       5             : //# This library is free software; you can redistribute it and/or modify it
       6             : //# under the terms of the GNU Library General Public License as published by
       7             : //# the Free Software Foundation; either version 2 of the License, or (at your
       8             : //# option) any later version.
       9             : //#
      10             : //# This library is distributed in the hope that it will be useful, but WITHOUT
      11             : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      12             : //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
      13             : //# License for more details.
      14             : //#
      15             : //# You should have received a copy of the GNU Library General Public License
      16             : //# along with this library; if not, write to the Free Software Foundation,
      17             : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
      18             : //#
      19             : //# Correspondence concerning AIPS++ should be addressed as follows:
      20             : //#        Internet email: casa-feedback@nrao.edu.
      21             : //#        Postal address: AIPS++ Project Office
      22             : //#                        National Radio Astronomy Observatory
      23             : //#                        520 Edgemont Road
      24             : //#                        Charlottesville, VA 22903-2475 USA
      25             : //#
      26             : //# $Id$
      27             : //----------------------------------------------------------------------------
      28             : 
      29             : #include <synthesis/CalTables/CalHistRecord.h>
      30             : #include <msvis/MSVis/MSCalEnums.h>
      31             : #include <casacore/casa/Arrays.h>
      32             : 
      33             : using namespace casacore;
      34             : namespace casa { //# NAMESPACE CASA - BEGIN
      35             : 
      36             : //----------------------------------------------------------------------------
      37             : 
      38           0 : CalHistoryRecord::CalHistoryRecord() : itsRecord()
      39             : {
      40             : // Null constructor
      41             : // Output to private data:
      42             : //    itsRecord        Record          Underlying record object
      43             : //
      44           0 : };
      45             : 
      46             : //----------------------------------------------------------------------------
      47             : 
      48           0 : CalHistoryRecord::CalHistoryRecord (const Record& inpRec) : itsRecord (inpRec)
      49             : {
      50             : // Construct from an input record
      51             : // Input:
      52             : //    inpRec           Record          Input record
      53             : // Output to private data:
      54             : //    itsRecord        Record          Underlying record object
      55             : //
      56           0 : };
      57             : 
      58             : //----------------------------------------------------------------------------
      59             : 
      60           0 : const Record& CalHistoryRecord::record()
      61             : {
      62             : // Return as record
      63             : // Output:
      64             : //    record           const Record&   Return underlying record object
      65             : // Input from private data:
      66             : //    itsRecord        Record          Underlying record object
      67             : //
      68           0 :   return itsRecord;
      69             : };
      70             : 
      71             : //----------------------------------------------------------------------------
      72             : 
      73           0 : void CalHistoryRecord::addRec (const Record& newRec)
      74             : {
      75             : // Add to underlying record object
      76             : // Input:
      77             : //    newRec           Record          Record to be added
      78             : // Output to private data:
      79             : //    itsRecord        Record          Underlying record object
      80             : //
      81           0 :   itsRecord.merge (newRec, RecordInterface::OverwriteDuplicates);
      82           0 : };
      83             : 
      84             : //----------------------------------------------------------------------------
      85             : 
      86           0 : void CalHistoryRecord::defineCalParms (const String& calParms)
      87             : {
      88             : // Define the CAL_PARMS field value
      89             : // Input:
      90             : //    calParms         const String&         CAL_PARMS value
      91             : // Output to private data:
      92             : //    itsRecord        Record                Underlying record object
      93             : //
      94           0 :   Record newRec;
      95           0 :   newRec.define (MSC::fieldName (MSC::CAL_PARMS), calParms);
      96           0 :   addRec (newRec);
      97           0 : };
      98             : 
      99             : //----------------------------------------------------------------------------
     100             : 
     101           0 : void CalHistoryRecord::defineCalTables (const String& calTables)
     102             : {
     103             : // Define the CAL_TABLES field value
     104             : // Input:
     105             : //    calTables        const String&         CAL_TABLES value
     106             : // Output to private data:
     107             : //    itsRecord        Record                Underlying record object
     108             : //
     109           0 :   Record newRec;
     110           0 :   newRec.define (MSC::fieldName (MSC::CAL_TABLES), calTables);
     111           0 :   addRec (newRec);
     112           0 : };
     113             : 
     114             : //----------------------------------------------------------------------------
     115             : 
     116           0 : void CalHistoryRecord::defineCalSelect (const String& calSelect)
     117             : {
     118             : // Define the CAL_SELECT field value
     119             : // Input:
     120             : //    calSelect        const String&         CAL_SELECT value
     121             : // Output to private data:
     122             : //    itsRecord        Record                Underlying record object
     123             : //
     124           0 :   Record newRec;
     125           0 :   newRec.define (MSC::fieldName (MSC::CAL_SELECT), calSelect);
     126           0 :   addRec (newRec);
     127           0 : };
     128             : 
     129             : //----------------------------------------------------------------------------
     130             : 
     131           0 : void CalHistoryRecord::defineCalNotes (const String& calNotes)
     132             : {
     133             : // Define the CAL_NOTES field value
     134             : // Input:
     135             : //    calNotes         const String&         CAL_NOTES value
     136             : // Output to private data:
     137             : //    itsRecord        Record                Underlying record object
     138             : //
     139           0 :   Record newRec;
     140           0 :   newRec.define (MSC::fieldName (MSC::CAL_NOTES), calNotes);
     141           0 :   addRec (newRec);
     142           0 : };
     143             : 
     144             : //----------------------------------------------------------------------------
     145             : 
     146           0 : void CalHistoryRecord::getCalParms (String& calParms)
     147             : {
     148             : // Get the CAL_PARMS field value
     149             : // Output:
     150             : //    calParms         String&               CAL_PARMS value
     151             : // Input from private data:
     152             : //    itsRecord        Record                Underlying record object
     153             : //
     154           0 :   record().get (MSC::fieldName (MSC::CAL_PARMS), calParms);
     155           0 : };
     156             : 
     157             : //----------------------------------------------------------------------------
     158             : 
     159           0 : void CalHistoryRecord::getCalTables (String& calTables)
     160             : {
     161             : // Get the CAL_TABLES field value
     162             : // Output:
     163             : //    calTables        String&               CAL_TABLES value
     164             : // Input from private data:
     165             : //    itsRecord        Record                Underlying record object
     166             : //
     167           0 :   record().get (MSC::fieldName (MSC::CAL_TABLES), calTables);
     168           0 : };
     169             : 
     170             : //----------------------------------------------------------------------------
     171             : 
     172           0 : void CalHistoryRecord::getCalSelect (String& calSelect)
     173             : {
     174             : // Get the CAL_SELECT field value
     175             : // Output:
     176             : //    calSelect        String&               CAL_SELECT value
     177             : // Input from private data:
     178             : //    itsRecord        Record                Underlying record object
     179             : //
     180           0 :   record().get (MSC::fieldName (MSC::CAL_SELECT), calSelect);
     181           0 : };
     182             : 
     183             : //----------------------------------------------------------------------------
     184             : 
     185           0 : void CalHistoryRecord::getCalNotes (String& calNotes)
     186             : {
     187             : // Get the CAL_NOTES field value
     188             : // Output:
     189             : //    calNotes         String&               CAL_NOTES value
     190             : // Input from private data:
     191             : //    itsRecord        Record                Underlying record object
     192             : //
     193           0 :   record().get (MSC::fieldName (MSC::CAL_NOTES), calNotes);
     194           0 : };
     195             : 
     196             : //----------------------------------------------------------------------------
     197             : 
     198             : 
     199             : } //# NAMESPACE CASA - END
     200             : 

Generated by: LCOV version 1.16