Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FBwError.h

Go to the documentation of this file.
00001 
00006 //---------------------------------------------------------------------------
00007 #ifndef FBwErrorH
00008 #define FBwErrorH
00009 //---------------------------------------------------------------------------
00010 
00011 namespace fbwrap
00012 {
00013 
00014 //---------------------------------------------------------------------------
00016 inline bool CheckStatus(const ISC_STATUS *s)
00017 {
00018         return s[0]==1 && s[1];
00019 }
00020 class FBwDb;
00021 class FBwService;
00023 
00029 class BasicFBwErrorMgr
00030 {
00031     const ISC_STATUS *status;
00032     const ISC_STATUS *CurError;
00033     char errMessage[256];
00034 public:
00036     BasicFBwErrorMgr()
00037     {
00038         status=CurError=0;
00039     }
00041     void Assign(const ISC_STATUS *errvec)
00042     {
00043         status=CurError=errvec;
00044     }
00046     void Reset()
00047     {
00048         CurError=status;
00049     }
00051     const char *Message();
00053     /*
00054      * \return false if there are no more messages
00055      */
00056     bool NextMessage();
00058 
00061     virtual void ShowMessage();
00063     virtual void ShowMessage(const FBwDb *db);
00064     virtual void ShowMessage(const FBwService *svc);
00065     virtual ~BasicFBwErrorMgr()
00066     {
00067     }
00068 };
00069 
00071 extern BasicFBwErrorMgr *ErrMan;
00072 };
00073 
00074 #endif

Generated on Fri Jan 31 08:30:01 2003 for fbwrap by doxygen1.2.17