sourceline.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef SOURCELINE_H
00012 #define SOURCELINE_H
00013 
00014 #include <qstring.h>
00015 
00019 class SourceLine
00020 {
00021         public:
00025                 SourceLine();
00026                 SourceLine( const QString & fileName, int line );
00027                 
00028                 QString fileName() const { return m_fileName; }
00029                 int line() const { return m_line; }
00030                 
00031                 bool isValid() const { return m_line >= 0; }
00032                 
00033                 bool operator < ( const SourceLine & sourceLine ) const;
00034                 bool operator == ( const SourceLine & sourceLine ) const;
00035                 
00036         protected:
00037                 QString m_fileName;
00038                 int m_line;
00039 };
00040 
00041 
00042 #endif

Generated on Tue May 8 17:05:32 2007 for KTechLab by  doxygen 1.5.1