X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestChangeHeader.cxx;h=b8de5e276a62fe60d1ec0f780ac0ab049e0c5bf4;hb=1ce6ae86daabc8b64c9309acce4ecf137ee79f07;hp=c2d4b4d992cb772f39ddaf180c83e4f89f7ec2d5;hpb=c094e185dd6404df031524ccae8e1b51e3b84871;p=gdcm.git diff --git a/Example/TestChangeHeader.cxx b/Example/TestChangeHeader.cxx index c2d4b4d9..b8de5e27 100644 --- a/Example/TestChangeHeader.cxx +++ b/Example/TestChangeHeader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestChangeHeader.cxx,v $ Language: C++ - Date: $Date: 2005/01/21 11:40:52 $ - Version: $Revision: 1.8 $ + 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 @@ -37,14 +37,14 @@ int main(int argc, char* argv[]) // 0018 1310 US ACQ Acquisition Matrix gdcm::DictEntry *dictEntry = - f2->GetFile()->GetPubDict()->GetDictEntry( 0x0018, 1310 ); + 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();