1 #include <ctype.h> // For isspace
4 gdcmDebug::gdcmDebug(int level) {
8 void gdcmDebug::Verbose(int Level, const char * Msg1, const char * Msg2) {
9 if (Level > DebugLevel)
11 cerr << Msg1 << ' ' << Msg2 << '\n';
14 void gdcmDebug::Assert(int Level, bool Test,
15 const char * Msg1, const char * Msg2) {
16 if (Level > DebugLevel)
19 cerr << Msg1 << ' ' << Msg2 << '\n';
22 void gdcmDebug::Error( bool Test, const char * Msg1, const char * Msg2) {
25 std::cerr << Msg1 << ' ' << Msg2 << '\n';
29 void gdcmDebug::Error(const char* Msg1, const char* Msg2,
31 std::cerr << Msg1 << ' ' << Msg2 << ' ' << Msg3 << '\n';
35 void gdcmDebug::Exit(int a) {
40 exit(a); // Found in #include <stdlib.h>
46 // Because is not yet available in g++2.06
47 istream& eatwhite(istream& is) {