Program: gdcm
Module: $RCSfile: gdcmDebug.h,v $
Language: C++
- Date: $Date: 2005/01/06 20:03:26 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2005/01/07 16:39:59 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
class GDCM_EXPORT Debug
{
public:
- Debug(int level = -1);
+ /// This is a global flag that controls whether any debug, warning
+ /// messages are displayed.
+ static void SetDebugLevel (int level);
+ static int GetDebugLevel ();
- void SetDebug (int level);
- void Verbose(int level, const char *msg1, const char *msg2 = "") ;
- void Error (bool test, const char *msg1, const char *msg2 = "");
- void Error (const char *msg1, const char *msg2 = "", const char *msg3 = "");
-
- void Assert(int level, bool test, const char *msg1, const char *msg2);
- void Exit(int a);
-
- static Debug &GetReference();
-
-private:
-/// warning message level to be displayed
- int DebugLevel;
+ static void Verbose(int level, const char *msg1, const char *msg2 = "") ;
+ static void Error (bool test, const char *msg1, const char *msg2 = "");
+ static void Error (const char *msg1, const char *msg2 = "", const char *msg3 = "");
+ static void Assert(int level, bool test, const char *msg1, const char *msg2);
+ static void Exit (int a);
};
} // end namespace gdcm
-/// Instance of debugging utility.
-static gdcm::Debug dbg;
#endif