X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestReadWriteReadCompare.cxx;h=655e12821407ab5015d29107bf073f8ec79f9572;hb=406e2b098680628a0ed34dee7a4a151e8d2c8122;hp=7f62c0b7019c9cfccc6a98998d0596b77baa74de;hpb=6b51b22366f878e1050c75a6ebb755bd2ff365c7;p=gdcm.git diff --git a/Testing/TestReadWriteReadCompare.cxx b/Testing/TestReadWriteReadCompare.cxx index 7f62c0b7..655e1282 100644 --- a/Testing/TestReadWriteReadCompare.cxx +++ b/Testing/TestReadWriteReadCompare.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestReadWriteReadCompare.cxx,v $ Language: C++ - Date: $Date: 2005/10/25 14:52:31 $ - Version: $Revision: 1.27 $ + Date: $Date: 2007/06/21 14:59:06 $ + Version: $Revision: 1.29 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -21,14 +21,14 @@ //Generated file: #include "gdcmDataImages.h" - + int CompareInternal(std::string const &filename, std::string const &output) { std::cout << " Testing: " << filename << std::endl; //////////////// Step 1 (see above description): - gdcm::File *file = gdcm::File::New( ); + GDCM_NAME_SPACE::File *file = GDCM_NAME_SPACE::File::New( ); file->SetFileName( filename ); file->Load (); if( !file->IsReadable() ) @@ -42,7 +42,7 @@ int CompareInternal(std::string const &filename, std::string const &output) std::cout << " step 1..."; //////////////// Step 2: - gdcm::FileHelper *filehelper = gdcm::FileHelper::New( file ); + GDCM_NAME_SPACE::FileHelper *filehelper = GDCM_NAME_SPACE::FileHelper::New( file ); int dataSize = filehelper->GetImageDataSize(); uint8_t *imageData = filehelper->GetImageData(); //EXTREMELY IMPORTANT // Sure, it is : It's up to the user to decide if he wants to @@ -56,7 +56,7 @@ int CompareInternal(std::string const &filename, std::string const &output) std::cout << "2..."; //////////////// Step 3: - gdcm::File *fileout = gdcm::File::New(); + GDCM_NAME_SPACE::File *fileout = GDCM_NAME_SPACE::File::New(); fileout->SetFileName( output ); fileout->Load(); // gdcm::FileHelper *reread = new gdcm::FileHelper( output ); // deprecated @@ -72,7 +72,7 @@ int CompareInternal(std::string const &filename, std::string const &output) return 1; } - gdcm::FileHelper *reread = gdcm::FileHelper::New( fileout ); + GDCM_NAME_SPACE::FileHelper *reread = GDCM_NAME_SPACE::FileHelper::New( fileout ); std::cout << "3..."; // For the next step: @@ -140,7 +140,7 @@ int TestReadWriteReadCompare(int argc, char *argv[]) int result = 0; if (argc == 4) - gdcm::Debug::DebugOn(); + GDCM_NAME_SPACE::Debug::DebugOn(); if (argc >= 3) {