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

QueryTranslationException.cpp

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