]> Creatis software - gdcm.git/blobdiff - Example/TestChangeHeader.cxx
BUG: Remove tons of mem leaks. There are still plenty that explains why gdcm is dog...
[gdcm.git] / Example / TestChangeHeader.cxx
index c0982e6d9095da93e149c005ef283f41a15b978a..6550733f36953d82e18b05f36fe5f1544e5324df 100644 (file)
@@ -14,13 +14,13 @@ std::endl;
        return 1;
     }
 
-    gdcmHeader *h1 = new gdcmHeader( argv[1] );
-    gdcmFile  *f1 = new gdcmFile( h1 );
-    gdcmFile  *f2 = new gdcmFile( argv[2] );
+    gdcm::Header *h1 = new gdcm::Header( argv[1] );
+    gdcm::File  *f1 = new gdcm::File( h1 );
+    gdcm::File  *f2 = new gdcm::File( argv[2] );
 
     // 0018 1310 US ACQ Acquisition Matrix
-    gdcmDictEntry *dictEntry =
-         f2->GetHeader()->GetPubDict()->GetDictEntryByName( "Acquisition Matrix" );
+    gdcm::DictEntry *dictEntry =
+       f2->GetHeader()->GetPubDict()->GetDictEntryByName( "Acquisition Matrix" );
     std::cerr << std::hex << dictEntry->GetGroup() << "," << dictEntry->GetElement() << std::endl;
 
    // std::string matrix = f2->GetHeader()->GetEntryByNumber(0x0018, 0x1310);