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

CipherExceptions.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: CipherExceptions.h,v 1.4 2005/01/21 19:44:16 mmarsh Exp $
00008 //
00009 // $Log: CipherExceptions.h,v $
00010 // Revision 1.4  2005/01/21 19:44:16  mmarsh
00011 // Updated for compatibility with Doxygen 1.4.1
00012 //
00013 // Revision 1.3  2004/05/19 15:56:46  mmarsh
00014 // *** empty log message ***
00015 //
00016 // Revision 1.2  2003/11/04 22:31:47  mmarsh
00017 // *** empty log message ***
00018 //
00019 //
00020 
00021 #ifndef __CODEX_CIPHERS_CIPHEREXCEPTIONS_H__
00022 #define __CODEX_CIPHERS_CIPHEREXCEPTIONS_H__
00023 
00024 #include <string>
00025 
00026 using namespace std;
00027 
00032 namespace CODEX_Ciphers
00033 {
00037    class ExceptionBase
00038    {
00039       public :
00045          ExceptionBase( const string& fname, int line ) :
00046             m_fname(fname),
00047             m_line(line)
00048          {}
00049 
00051          virtual ~ExceptionBase() {}
00052 
00056          void report() const;
00057 
00059          const string& fname() const { return m_fname; }
00060 
00062          int line() const { return m_line; }
00063 
00064       protected :
00069          virtual void derivedMsg() const = 0;
00070 
00071       private :
00072          string  m_fname;
00073          int     m_line;
00074    };
00075 
00076 }
00077 
00078 #endif /* __CODEX_CIPHERS_CIPHEREXCEPTIONS_H__ */

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