X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestReadWriteReadCompare.cxx;h=98a3a08a620a521e16ddca0c36506de2c706537c;hb=b19adc9e0168b80e420811c89a93dc114493033c;hp=5441c7a7fd7a1528ecf92cd08afaf0c9a50fd7ff;hpb=d00078b5e19310b379c8339fa8fe38362e8ca392;p=gdcm.git diff --git a/Example/TestReadWriteReadCompare.cxx b/Example/TestReadWriteReadCompare.cxx index 5441c7a7..98a3a08a 100644 --- a/Example/TestReadWriteReadCompare.cxx +++ b/Example/TestReadWriteReadCompare.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestReadWriteReadCompare.cxx,v $ Language: C++ - Date: $Date: 2005/01/20 16:16:58 $ - Version: $Revision: 1.8 $ + Date: $Date: 2005/02/02 10:06:32 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,13 +15,13 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -#include "gdcmHeader.h" +#include "gdcmFile.h" #include "gdcmFileHelper.h" //Generated file: #include "gdcmDataImages.h" -int main(int argc, char* argv[]) +int main(int argc, char *argv[]) { if (argc<2) { @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) std::cout << " For all images in gdcmData (and not blacklisted in " "Test/CMakeLists.txt)" << std::endl; std::cout << " apply the following multistep test: " << std::endl; - std::cout << " step 1: parse the image (as gdcmHeader) and call" + std::cout << " step 1: parse the image (as gdcmFile) and call" << " IsReadable(). " << std::endl; std::cout << " step 2: write the corresponding image in DICOM V3 " << "with explicit" << std::endl @@ -57,7 +57,7 @@ int main(int argc, char* argv[]) //////////////// Step 1 (see above description): - gdcm::Header *header = new gdcm::Header( filename ); + gdcm::File *header = new gdcm::File( filename ); if( !header->IsReadable() ) { std::cerr << "Test::TestReadWriteReadCompare: Image not gdcm compatible:" @@ -100,7 +100,7 @@ int main(int argc, char* argv[]) //////////////// Step 3: gdcm::FileHelper *reread = new gdcm::FileHelper( "TestReadWriteReadCompare.dcm" ); - if( !reread->GetHeader()->IsReadable() ) + if( !reread->GetFile()->IsReadable() ) { std::cerr << "Test::TestReadWriteReadCompare: Could not reread image " << "written:" << filename << std::endl;