LCOV - code coverage report
Current view: top level - alma/ASDM - NoSuchRow.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 23 0.0 %
Date: 2024-11-06 17:42:47 Functions: 0 9 0.0 %

          Line data    Source code
       1             : /*
       2             :  * ALMA - Atacama Large Millimeter Array
       3             :  * (c) European Southern Observatory, 2002
       4             :  * (c) Associated Universities Inc., 2002
       5             :  * Copyright by ESO (in the framework of the ALMA collaboration),
       6             :  * Copyright by AUI (in the framework of the ALMA collaboration),
       7             :  * All rights reserved.
       8             :  * 
       9             :  * This library is free software; you can redistribute it and/or
      10             :  * modify it under the terms of the GNU Lesser General Public
      11             :  * License as published by the Free software Foundation; either
      12             :  * version 2.1 of the License, or (at your option) any later version.
      13             :  * 
      14             :  * This library is distributed in the hope that it will be useful,
      15             :  * but WITHOUT ANY WARRANTY, without even the implied warranty of
      16             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      17             :  * Lesser General Public License for more details.
      18             :  * 
      19             :  * You should have received a copy of the GNU Lesser General Public
      20             :  * License along with this library; if not, write to the Free Software
      21             :  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
      22             :  * MA 02111-1307  USA
      23             :  *
      24             :  * File NoSuchRow.cpp
      25             :  */
      26             : #include <alma/ASDM/NoSuchRow.h>
      27             : 
      28             : using std::string;
      29             : 
      30             : namespace asdm {
      31             :   const string NoSuchRow::ITSNAME = "No such row exception: ";
      32             : 
      33           0 :   NoSuchRow::NoSuchRow() : message ("") { ; }
      34             :   
      35           0 :   NoSuchRow::NoSuchRow(int rowNumber, string tableName) :
      36           0 :     message("No such row as number " + Integer::toString(rowNumber) + 
      37           0 :             " in table " + tableName) {
      38           0 :   }
      39             : 
      40           0 :   NoSuchRow::NoSuchRow(string key, string tableName) :
      41           0 :     message("No such row with key " + key + " in table " + tableName) {
      42           0 :   }
      43             : 
      44           0 :   NoSuchRow::NoSuchRow(int N, string toTableName, string fromTableName) :
      45           0 :     message("No such link as number " + Integer::toString(N) + " to table " + 
      46           0 :             toTableName + " in this row of table " + fromTableName) {
      47           0 :   }
      48             : 
      49           0 :   NoSuchRow::NoSuchRow(string key, string toTableName, string fromTableName) :
      50           0 :     message("No such link with key " + key + " to table " + 
      51           0 :             toTableName + " in this row of table " + fromTableName) {
      52           0 :   }
      53             : 
      54           0 :   NoSuchRow::NoSuchRow(string toTableName, string fromTableName, bool /* option */ ) :
      55           0 :     message("The optional link to table " + toTableName + " in this row of table " + 
      56           0 :             fromTableName + " does not exist! ")  {
      57           0 :   }
      58             :   
      59           0 :   NoSuchRow::~NoSuchRow() { ; }
      60             : 
      61           0 :   string NoSuchRow::getMessage() const {
      62           0 :     return ITSNAME + message;
      63             :   }  
      64             : } // end namsespace asdm

Generated by: LCOV version 1.16