base/zz_log_exception.h

Go to the documentation of this file.
00001 /* libzz
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_log_exception_h
00010 #define zz_log_exception_h
00011 
00012 #include <zz_exception.h>
00013 #include <zz_log.h>
00014 #include <zz_export.h>
00015 
00016 /*
00017         Description:
00018         Fel som automatisk loggas
00019 
00020         Author: 
00021         Toni Thomsson, toni@tonjac.org
00022 
00023         Library:
00024         libzz.a (HPUX) libzz.lib (win32)
00025 
00026         Platform:
00027         HPUX, win32
00028 */
00029 class ZZ_API CzzLogException : public CzzException
00030 {
00031 public:
00032 
00033         // Description: Skapar/loggar fel
00034         // Remarks: Använd macro _LAF för det två första parametrarna
00035         CzzLogException( int lineNumber,                // IN, radnummer
00036                                                 CzzString fileName,     // IN, filnamn
00037                                                 int code,                       // IN, felkod
00038                                                 CzzString reason        // IN, feltext
00039                                                 );
00040 
00041         // Description: Destruktor
00042         virtual ~CzzLogException();
00043 
00044     /*
00045                 Description: 
00046                 Loggar felet
00047 
00048                 Remarks:        
00049                 överlagras om man vill att fel
00050                 loggas på annat sätt
00051         */
00052     virtual void LogErr( const int row,                 // IN, radnummer
00053                                                         const char* file        // IN, filnamn
00054                                                         );
00055 
00056 protected:
00057        CzzLog m_Log;
00058 
00059 };
00060 
00061 #endif // zz_log_exception_h
00062 
00063 

Generated on Thu Sep 21 21:45:41 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO