]> Creatis software - gdcm.git/blobdiff - Example/TestChangeHeader.cxx
Stage 2 of names normalization :
[gdcm.git] / Example / TestChangeHeader.cxx
index 6baada033ddfd82cf96e61edd57c2c0f4df5f892..c2d4b4d992cb772f39ddaf180c83e4f89f7ec2d5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestChangeHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/20 16:16:58 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2005/01/21 11:40:52 $
+  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
@@ -15,7 +15,7 @@
      PURPOSE.  See the above copyright notices for more information.
                                                                                 
 =========================================================================*/
-#include "gdcmHeader.h"
+#include "gdcmFile.h"
 #include "gdcmFileHelper.h"
 
 // This examples read two images (could be the same). Try to modify
@@ -31,20 +31,20 @@ int main(int argc, char* argv[])
        return 1;
     }
 
-    gdcm::Header *h1 = new gdcm::Header( argv[1] );
+    gdcm::File *h1 = new gdcm::File( argv[1] );
     gdcm::FileHelper  *f1 = new gdcm::FileHelper( h1 );
     gdcm::FileHelper  *f2 = new gdcm::FileHelper( argv[2] );
 
     // 0018 1310 US ACQ Acquisition Matrix
     gdcm::DictEntry *dictEntry =
-       f2->GetHeader()->GetPubDict()->GetDictEntry( 0x0018, 1310 );
+       f2->GetFile()->GetPubDict()->GetDictEntry( 0x0018, 1310 );
     std::cerr << std::hex << dictEntry->GetGroup() << "," << dictEntry->GetElement() << std::endl;
 
-    std::string matrix = f2->GetHeader()->GetEntry(0x0018, 0x1310);
+    std::string matrix = f2->GetFile()->GetEntry(0x0018, 0x1310);
     if(matrix != "gdcm::Unfound")
     {
        std::cerr << "Aquisition Matrix:" << matrix << std::endl;
-       f1->GetHeader()->ReplaceOrCreate( matrix, 0x0018, 0x1310);
+       f1->GetFile()->ReplaceOrCreate( matrix, 0x0018, 0x1310);
     }
 
     f1->GetImageData();