]> Creatis software - gdcm.git/blobdiff - Example/TestFromScratch.cxx
According to Benoit's suggestion, and without any objection from anybody
[gdcm.git] / Example / TestFromScratch.cxx
index 228c52a49892ca761ce82c78d85d960770fc858b..11589526eb8f5abf7703d49b06adee4ef8e69095 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestFromScratch.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/10 17:10:22 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2005/01/08 15:03:57 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,7 +36,8 @@ int main(int argc, char *argv[])
    }
 
    // Doesn't seems to do anything:
-   dbg.SetDebug(-1);
+   gdcm::Debug::SetDebugOn();
+
    // Doesn't link properly:
    //gdcm::Debug::GetReference().SetDebug(1);
 
@@ -62,9 +63,9 @@ int main(int argc, char *argv[])
       if ( gdcm::ValEntry* v = dynamic_cast<gdcm::ValEntry*>(d) )
       {   
          // Do not bother with field from private dict
-         if( v->GetName() != "unkn" )
+         if( v->GetName() != "gdcm::Unknown" )
          {  
-            h2->ReplaceOrCreateByNumber
+            h2->ReplaceOrCreate( 
                               v->GetValue(),
                               v->GetGroup(), 
                               v->GetElement(),