Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QSExceptions.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: QSExceptions.h,v 1.4 2005/01/21 19:44:17 mmarsh Exp $
00008 //
00009 // $Log: QSExceptions.h,v $
00010 // Revision 1.4  2005/01/21 19:44:17  mmarsh
00011 // Updated for compatibility with Doxygen 1.4.1
00012 //
00013 // Revision 1.3  2004/05/19 15:56:55  mmarsh
00014 // *** empty log message ***
00015 //
00016 // Revision 1.2  2003/11/04 22:31:50  mmarsh
00017 // *** empty log message ***
00018 //
00019 //
00020 
00021 #ifndef __CODEX_QUORUM_QSEXCEPTIONS_H__
00022 #define __CODEX_QUORUM_QSEXCEPTIONS_H__
00023 
00024 #include <string>
00025 
00026 #include "CODEX_Exceptions/ExceptionBase.h"
00027 
00028 namespace CODEX_Quorum
00029 {
00033    class QSExceptionBase : public CODEX_Exceptions::ExceptionBase
00034    {
00035       public :
00041          QSExceptionBase( const string& fname, int line ) :
00042             CODEX_Exceptions::ExceptionBase( fname, line )
00043          {}
00044 
00046          virtual ~QSExceptionBase() {}
00047 
00051          void report() const;
00052 
00054          const string& fname() const { return m_fname; }
00055 
00057          int line() const { return m_line; }
00058 
00059       protected :
00064          virtual void derivedMsg() const = 0;
00065    };
00066 
00067 }
00068 
00069 #endif /* __CODEX_QUORUM_QSEXCEPTIONS_H__ */

Generated on Fri May 6 17:40:51 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1