Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

LcgInfoException.cpp

00001                               /* LcgInfoException.cpp */
00002 
00003 /*
00004  *  Implementation of LcgInfoException.h
00005  */
00006 
00007 #include "LcgInfoException.h"
00008 
00009 using namespace LcgInfo;
00010 using namespace std;
00011 
00012 
00013 /*************************  METHODS FOR CLASS LcgInfoException  **************************/
00014 
00015 string LcgInfoException::DefMess = "+LcgInfoException: ";
00016 
00017 
00018 LcgInfoException::LcgInfoException() {
00019    message=DefMess;
00020    filename="";
00021    linenumber=-1;
00022 }
00023 
00024 LcgInfoException::LcgInfoException(string const & s, string const & file, int const & line){
00025    message=DefMess+s;
00026    filename=file;
00027    linenumber=line;
00028 }
00029 
00030 LcgInfoException::~LcgInfoException(){
00031 }
00032 
00033 string LcgInfoException::what(){
00034      return message;
00035 }
00036 
00037 int LcgInfoException::get_line(){
00038      return linenumber;
00039 }
00040 
00041 string LcgInfoException::get_file(){
00042      return filename;
00043 }
00044 

Generated on Tue Oct 5 14:42:45 2004 for LCG Information System Interface by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002