X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDebug.h;h=0ea4fd7323f4ee1be6289144e00b56fc6c82b297;hb=fcaf25002e2d8ebf82bc5bd07dfb14aa7af05b2c;hp=4b6d6824dd84c0f45a921d05bcd71dc19c0def37;hpb=327dfe7647e3720b0f3125f9b19397cb9afc0ed3;p=gdcm.git diff --git a/src/gdcmDebug.h b/src/gdcmDebug.h index 4b6d6824..0ea4fd73 100644 --- a/src/gdcmDebug.h +++ b/src/gdcmDebug.h @@ -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