- if( !gdcm::Util::DicomStringEqual(a,ref) ) return 1;
- if( !gdcm::Util::DicomStringEqual(b,ref) ) return 1;
- if( !gdcm::Util::DicomStringEqual(c,ref) ) return 1;
- if( gdcm::Util::DicomStringEqual(d,ref) ) return 1;
+ if( !gdcm::Util::DicomStringEqual(a,ref) )
+ return 1;
+ if( !gdcm::Util::DicomStringEqual(b,ref) )
+ return 1;
+ if( !gdcm::Util::DicomStringEqual(c,ref) )
+ return 1;
+ if( gdcm::Util::DicomStringEqual(d,ref) )
+ return 1;
+
+// ----------------------------------------------------------
+// Let's test gdcm::Debug, now.
+ std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag() <<std::endl;
+ gdcm::Debug::SetDebugFilename ("DummyFileNameToWriteTo.txt");
+ std::cout << "We set a Debug file" <<std::endl;
+ if ( !gdcm::Debug::GetDebugFlag() )
+ {
+ std::cout << "Debug Flag should be TRUE... " << std::endl;
+ return 1;
+ }
+ std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag()<<std::endl;
+ gdcm::Debug::SetDebugFlag ( false );
+ std::cout << "GetDebugFlag : " << gdcm::Debug::GetDebugFlag()<<std::endl;
+ gdcm::Debug::SetDebugFilename ("DummyFileNameToWriteTo2.txt");