X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestChangeHeader.cxx;h=708d82fc32b5a59c122b9c3caa9e2a3edefb8355;hb=978f699b97794e209f9d20e2a33a72404bda54ef;hp=c0982e6d9095da93e149c005ef283f41a15b978a;hpb=eebb428694422967cab7559646df139d790afded;p=gdcm.git diff --git a/Example/TestChangeHeader.cxx b/Example/TestChangeHeader.cxx index c0982e6d..708d82fc 100644 --- a/Example/TestChangeHeader.cxx +++ b/Example/TestChangeHeader.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestChangeHeader.cxx,v $ + Language: C++ + Date: $Date: 2004/11/16 04:26:18 $ + Version: $Revision: 1.4 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "gdcmHeader.h" #include "gdcmFile.h" @@ -14,13 +31,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);