#include <gdcmDebug.h>
Public Member Functions | |
Debug () | |
~Debug () | |
Static Public Member Functions | |
static void | SetDebugFlag (bool flag) |
Sets both the debug flag and warning flag (both used for debugging purpose). | |
static bool | GetDebugFlag () |
Gets the debug flag value (used to warn user when file contains some oddity). | |
static void | DebugOn () |
Sets the Debug Flag to true. | |
static void | DebugOff () |
Sets the Debug Flag to false. | |
static void | SetWarningFlag (bool flag) |
Sets the warning flag. | |
static bool | GetWarningFlag () |
Gets the warning flag value. | |
static void | WarningOn () |
Sets the Warning Flag to true. | |
static void | WarningOff () |
Sets the Warning Flag to false. | |
static void | SetDebugToFile (bool flag) |
Accessor. | |
static bool | GetDebugToFile () |
Accessor to know whether debug info are redirected to file. | |
static void | DebugToFileOn () |
Next debug messages will be sent in the debug file. | |
static void | DebugToFileOff () |
Next debug messages will be sent in the standard output. | |
static void | SetDebugFilename (std::string const &filename) |
Set the filename the debug stream should be redirect to Settting a filename also sets DebugToFile to true. | |
static std::ofstream & | GetDebugFile () |
Internal use only. Allow us to retrieve the static from anywhere in gdcm code. |
A debugging message is only shown if the flag is on (DebugFlag) This is static var and can be set at beginning of code: gdcm::Debug::SetDebugOn();
Definition at line 48 of file gdcmDebug.h.
|
Definition at line 33 of file gdcmDebug.cxx.
|
|
Definition at line 38 of file gdcmDebug.cxx. References gdcm::DebugFile.
|
|
Sets the Debug Flag to false.
Definition at line 61 of file gdcmDebug.h. 00061 { SetDebugFlag(false); }
|
|
Sets the Debug Flag to true.
Definition at line 59 of file gdcmDebug.h. 00059 { SetDebugFlag(true); }
|
|
Next debug messages will be sent in the standard output.
Definition at line 79 of file gdcmDebug.h. 00079 { SetDebugToFile(false); }
|
|
Next debug messages will be sent in the debug file.
Definition at line 77 of file gdcmDebug.h. 00077 { SetDebugToFile(true); }
|
|
Internal use only. Allow us to retrieve the static from anywhere in gdcm code.
Definition at line 126 of file gdcmDebug.cxx. References gdcm::DebugFile. 00127 { 00128 return DebugFile; 00129 }
|
|
Gets the debug flag value (used to warn user when file contains some oddity).
Definition at line 63 of file gdcmDebug.cxx. References gdcm::DebugFlag. Referenced by gdcm::Document::ParseDES(). 00064 { 00065 return DebugFlag; 00066 }
|
|
Accessor to know whether debug info are redirected to file.
Definition at line 100 of file gdcmDebug.cxx. References gdcm::DebugToFile. 00101 { 00102 return DebugToFile; 00103 }
|
|
Gets the warning flag value.
Definition at line 84 of file gdcmDebug.cxx. References gdcm::WarningFlag. 00085 { 00086 return WarningFlag; 00087 }
|
|
Set the filename the debug stream should be redirect to Settting a filename also sets DebugToFile to true.
Definition at line 112 of file gdcmDebug.cxx. References gdcm::DebugFile, gdcm::DebugFlag, and gdcm::DebugToFile. 00113 { 00114 DebugToFile = true; // Just in case ... 00115 DebugFlag = true; // Just in case ... 00116 if ( DebugFile.is_open() ) 00117 DebugFile.close(); 00118 DebugFile.open( filename.c_str() ); 00119 }
|
|
Sets both the debug flag and warning flag (both used for debugging purpose).
Definition at line 51 of file gdcmDebug.cxx. References gdcm::DebugFlag, and gdcm::WarningFlag. 00052 { 00053 // To help tracking a bug, both flags are necessary 00054 DebugFlag = flag; 00055 WarningFlag = flag; 00056 }
|
|
Accessor.
Definition at line 92 of file gdcmDebug.cxx. References gdcm::DebugToFile. 00093 { 00094 DebugToFile = flag; 00095 }
|
|
Sets the warning flag.
Definition at line 72 of file gdcmDebug.cxx. References gdcm::DebugFlag, and gdcm::WarningFlag. 00073 { 00074 // Cannot unset Warning flag if Debug flag is on. 00075 if (flag == false && DebugFlag == true) 00076 return; 00077 WarningFlag = flag; 00078 }
|
|
Sets the Warning Flag to false.
Definition at line 70 of file gdcmDebug.h. 00070 { SetWarningFlag(false); }
|
|
Sets the Warning Flag to true.
Definition at line 68 of file gdcmDebug.h. 00068 { SetWarningFlag(true); }
|