Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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.3 2004/05/19 15:56:55 mmarsh Exp $
00008 //
00009 // $Log: QSExceptions.h,v $
00010 // Revision 1.3  2004/05/19 15:56:55  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:50  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_QUORUM_QSEXCEPTIONS_H__
00019 #define __CODEX_QUORUM_QSEXCEPTIONS_H__
00020 
00021 #include <string>
00022 
00023 #include "CODEX_Exceptions/ExceptionBase.h"
00024 
00025 namespace CODEX_Quorum
00026 {
00030    class QSExceptionBase : public CODEX_Exceptions::ExceptionBase
00031    {
00032       public :
00038          QSExceptionBase( const string& fname, int line ) :
00039             CODEX_Exceptions::ExceptionBase( fname, line )
00040          {}
00041 
00043          virtual ~QSExceptionBase() {}
00044 
00048          void report() const;
00049 
00051          const string& fname() const { return m_fname; }
00052 
00054          int line() const { return m_line; }
00055 
00056       protected :
00061          virtual void derivedMsg() const = 0;
00062    };
00063 
00064 }
00065 
00066 #endif /* __CODEX_QUORUM_QSEXCEPTIONS_H__ */

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18