]> Creatis software - gdcm.git/blobdiff - Example/TestChangeHeader.cxx
Cosmetics
[gdcm.git] / Example / TestChangeHeader.cxx
index a35f143234437696fc9b6e5f7a576b43e8bfe0b5..b8de5e276a62fe60d1ec0f780ac0ab049e0c5bf4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestChangeHeader.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/24 14:14:08 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2005/01/25 15:44:22 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -40,11 +40,11 @@ int main(int argc, char* argv[])
        f2->GetFile()->GetPubDict()->GetEntry( 0x0018, 1310 );
     std::cerr << std::hex << dictEntry->GetGroup() << "," << dictEntry->GetElement() << std::endl;
 
-    std::string matrix = f2->GetFile()->GetEntry(0x0018, 0x1310);
+    std::string matrix = f2->GetFile()->GetEntryValue(0x0018, 0x1310);
     if(matrix != "gdcm::Unfound")
     {
        std::cerr << "Aquisition Matrix:" << matrix << std::endl;
-       f1->GetFile()->ReplaceOrCreate( matrix, 0x0018, 0x1310);
+       f1->GetFile()->InsertValEntry( matrix, 0x0018, 0x1310);
     }
 
     f1->GetImageData();