]> Creatis software - gdcm.git/blob - src/gdcmDebug.cxx
ENH: update gdcmDebug after Benoit comments
[gdcm.git] / src / gdcmDebug.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmDebug.cxx,v $
5   Language:  C++
6   Date:      $Date: 2005/01/07 19:20:38 $
7   Version:   $Revision: 1.15 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #include <iostream>
20 #include "gdcmDebug.h"
21
22 namespace gdcm 
23 {
24
25 /// warning message level to be displayed
26 static int DebugFlag = 0;
27 //-----------------------------------------------------------------------------
28 /**
29  * \brief   Accessor
30  * @param   level Set the debug level
31  */ 
32 void Debug::SetDebugFlag (int flag) 
33 {
34    DebugFlag = flag;
35 }
36
37 /**
38  * \brief   Accessor
39  * @param   level Get the debug level
40  */ 
41 int Debug::GetDebugFlag ()
42 {
43    return DebugFlag;
44 }
45
46 } // end namespace gdcm
47
48