]> Creatis software - gdcm.git/blobdiff - src/gdcmDebug.h
COMP: Fix VS6 compilation pb
[gdcm.git] / src / gdcmDebug.h
index 4b6d6824dd84c0f45a921d05bcd71dc19c0def37..0ea4fd7323f4ee1be6289144e00b56fc6c82b297 100644 (file)
@@ -3,8 +3,8 @@
   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
@@ -39,26 +39,19 @@ namespace gdcm
 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