]> Creatis software - gdcm.git/blobdiff - Example/exGC.cxx
* Remove #define and replace then by the call to the corresponding
[gdcm.git] / Example / exGC.cxx
index 8d28ecec55e90cfa069f3fb65fb8ecda30edaa93..9e1d4c48aff2b02ef5e14b9dbd1fdda07bc931fd 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exGC.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/07/07 17:31:54 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2005/08/30 15:13:06 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
    std::cout << argv[1] << std::endl;
 
    gdcm::File *f = new gdcm::File();
-   f->SetLoadMode( 0x00000000);
+   f->SetLoadMode( gdcm::LD_ALL);
    f->SetFileName( fileName );
    bool res = f->Load();        
 
@@ -119,7 +119,9 @@ int main(int argc, char *argv[])
    // ------                              without Sequences     -------------
 
  
-   gdcm::FileHelper *copy = new gdcm::FileHelper( output );
+   gdcm::FileHelper *copy = new gdcm::FileHelper( );
+   copy->SetFileName( output );
+   copy->Load();
  
    gdcm::DocEntry *d = f->GetFirstEntry();
    while(d)