LCOV - code coverage report
Current view: top level - calanalysis/CalAnalysis - CalStatsAXES.cc (source / functions) Hit Total Coverage
Test: casa_coverage.info Lines: 0 23 0.0 %
Date: 2023-10-25 08:47:59 Functions: 0 4 0.0 %

          Line data    Source code
       1             : 
       2             : // -----------------------------------------------------------------------------
       3             : 
       4             : /*
       5             : 
       6             : CalStatsAXES.cc
       7             : 
       8             : Description:
       9             : ------------
      10             : This file contains member functions for the nested CalStats::AXES class.
      11             : 
      12             : Classes:
      13             : --------
      14             : CalStats::AXES - This nested class contains the axes for the CalStats class.
      15             : 
      16             : Modification history:
      17             : ---------------------
      18             : 2011 Dec 23 - Nick Elias, NRAO
      19             :               Initial version.
      20             : 
      21             : */
      22             : 
      23             : // -----------------------------------------------------------------------------
      24             : // Includes
      25             : // -----------------------------------------------------------------------------
      26             : 
      27             : #include <calanalysis/CalAnalysis/CalStats.h>
      28             : 
      29             : // -----------------------------------------------------------------------------
      30             : // Start of casa namespace
      31             : // -----------------------------------------------------------------------------
      32             : 
      33             : using namespace casacore;
      34             : namespace casa {
      35             : 
      36             : // -----------------------------------------------------------------------------
      37             : // Start of CalStats::AXES nested class
      38             : // -----------------------------------------------------------------------------
      39             : 
      40             : /*
      41             : 
      42             : CalStats::AXES
      43             : 
      44             : Description:
      45             : ------------
      46             : This nested class contains the axes for the CalStats class.
      47             : 
      48             : Class public member functions:
      49             : ------------------------------
      50             : AXES      - This constructor is the default that initializes variables.
      51             : AXES      - This construtor copies the input instance to the present instance.
      52             : ~AXES     - This destructor destroys the instance.
      53             : operator= - This function sets one instance to another.
      54             : 
      55             : Modification history:
      56             : ---------------------
      57             : 2011 Dec 23 - Nick Elias, NRAO
      58             :               Initial version containing AXES() (default), AXES() (copy),
      59             :               ~AXES(), and operator=().
      60             : 
      61             : */
      62             : 
      63             : // -----------------------------------------------------------------------------
      64             : // Start of CalStats::AXES public member functions
      65             : // -----------------------------------------------------------------------------
      66             : 
      67             : /*
      68             : 
      69             : CalStats::AXES::AXES (default)
      70             : 
      71             : Description:
      72             : ------------
      73             : This constructor is the default that initializes variables.
      74             : 
      75             : Inputs:
      76             : -------
      77             : None.
      78             : 
      79             : Outputs:
      80             : --------
      81             : None.
      82             : 
      83             : Modification history:
      84             : ---------------------
      85             : 2011 Dec 23 - Nick Elias, NRAO
      86             :               Initial version.
      87             : 
      88             : */
      89             : 
      90             : // -----------------------------------------------------------------------------
      91             : 
      92           0 : CalStats::AXES::AXES( void ) {
      93             : 
      94             :   // Initialize the public variables and return
      95             : 
      96           0 :   eAxisIterFeedID = INIT;
      97           0 :   eAxisIterUserID = INIT;
      98           0 :   eAxisNonIterID = INIT;
      99           0 :   sFeed = String();
     100           0 :   dAxisIterUser = 0.0;
     101             : 
     102           0 :   return;
     103             : 
     104             : }
     105             : 
     106             : // -----------------------------------------------------------------------------
     107             : 
     108             : /*
     109             : 
     110             : CalStats::AXES::AXES (copy)
     111             : 
     112             : Description:
     113             : ------------
     114             : This construtor copies the input instance to the present instance.
     115             : 
     116             : Inputs:
     117             : -------
     118             : oAxes - This reference to a CalStats::AXES instance contains the axes
     119             :         information.
     120             : 
     121             : Outputs:
     122             : --------
     123             : None.
     124             : 
     125             : Modification history:
     126             : ---------------------
     127             : 2011 Dec 23 - Nick Elias, NRAO
     128             :               Initial version.
     129             : 
     130             : */
     131             : 
     132             : // -----------------------------------------------------------------------------
     133             : 
     134           0 : CalStats::AXES::AXES( const CalStats::AXES& oAxes ) {
     135             : 
     136             :   // Copy the public variables from the input instance to this instance and
     137             :   // return
     138             : 
     139           0 :   eAxisIterFeedID = oAxes.eAxisIterFeedID;
     140           0 :   eAxisIterUserID = oAxes.eAxisIterUserID;
     141           0 :   eAxisNonIterID = oAxes.eAxisNonIterID;
     142           0 :   sFeed = String( oAxes.sFeed );
     143           0 :   dAxisIterUser = oAxes.dAxisIterUser;
     144             : 
     145           0 :   return;
     146             : 
     147             : }
     148             : 
     149             : // -----------------------------------------------------------------------------
     150             : 
     151             : /*
     152             : 
     153             : CalStats::AXES::~AXES
     154             : 
     155             : Description:
     156             : ------------
     157             : This destructor destroys the instance.
     158             : 
     159             : Inputs:
     160             : -------
     161             : None.
     162             : 
     163             : Outputs:
     164             : --------
     165             : None.
     166             : 
     167             : Modification history:
     168             : ---------------------
     169             : 2011 Dec 23 - Nick Elias, NRAO
     170             :               Initial version.
     171             : 
     172             : */
     173             : 
     174             : // -----------------------------------------------------------------------------
     175             : 
     176           0 : CalStats::AXES::~AXES( void ) {}
     177             : 
     178             : // -----------------------------------------------------------------------------
     179             : 
     180             : /*
     181             : 
     182             : CalStats::AXES::operator=
     183             : 
     184             : Description:
     185             : ------------
     186             : This function sets one instance to another.
     187             : 
     188             : Inputs:
     189             : -------
     190             : oAxes - This reference to a CalStats::AXES instance contains the axes
     191             :         information.
     192             : 
     193             : Outputs:
     194             : --------
     195             : None.
     196             : 
     197             : Modification history:
     198             : ---------------------
     199             : 2011 Dec 23 - Nick Elias, NRAO
     200             :               Initial version.
     201             : 
     202             : */
     203             : 
     204             : // -----------------------------------------------------------------------------
     205             : 
     206           0 : CalStats::AXES& CalStats::AXES::operator=( const CalStats::AXES& oAxes ) {
     207             : 
     208             :   // If this instance is not the same as the input instance, copy the public
     209             :   // variables to this one and return
     210             : 
     211           0 :   if ( this != &oAxes ) {
     212           0 :     eAxisIterFeedID = oAxes.eAxisIterFeedID;
     213           0 :     eAxisIterUserID = oAxes.eAxisIterUserID;
     214           0 :     eAxisNonIterID = oAxes.eAxisNonIterID;
     215           0 :     sFeed = String( oAxes.sFeed );
     216           0 :     dAxisIterUser = oAxes.dAxisIterUser;
     217             :   }
     218             :   
     219           0 :   return( *this );
     220             : 
     221             : }
     222             : 
     223             : // -----------------------------------------------------------------------------
     224             : // End of CalStats::AXES public member functions
     225             : // -----------------------------------------------------------------------------
     226             : 
     227             : // -----------------------------------------------------------------------------
     228             : // End of CalStats::AXES nested class
     229             : // -----------------------------------------------------------------------------
     230             : 
     231             : };
     232             : 
     233             : // -----------------------------------------------------------------------------
     234             : // End of casa namespace
     235             : // -----------------------------------------------------------------------------

Generated by: LCOV version 1.16