X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexPrintWritePrint.cxx;h=f3eee5c33993ef725220eace95460bf14d94a15a;hb=7807e926c2319c5adfc037665992307222bc8f27;hp=8a6ea7594a07cef8446d80f7707d3de652cae267;hpb=f3cc252fad08c3e8dbc395f2ca7cabf47bf95302;p=gdcm.git diff --git a/Example/exPrintWritePrint.cxx b/Example/exPrintWritePrint.cxx index 8a6ea759..f3eee5c3 100644 --- a/Example/exPrintWritePrint.cxx +++ b/Example/exPrintWritePrint.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exPrintWritePrint.cxx,v $ Language: C++ - Date: $Date: 2005/08/30 15:13:06 $ - Version: $Revision: 1.4 $ + Date: $Date: 2007/06/21 15:01:00 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -17,20 +17,17 @@ =========================================================================*/ #include "gdcmFile.h" #include "gdcmFileHelper.h" -#include "gdcmValEntry.h" -#include "gdcmBinEntry.h" - int main(int argc, char *argv[]) { - gdcm::File *f; - gdcm::FileHelper *fh; + GDCM_NAME_SPACE::File *f; + GDCM_NAME_SPACE::FileHelper *fh; std::string fileNameToWrite; void *imageData; int dataSize; std::cout << " This program allows to see at a glance" << std::endl; - std::cout << " if the gdcm::File remains unimpaired" << std::endl; + std::cout << " if the GDCM_NAME_SPACE::File remains unimpaired" << std::endl; std::cout << " after a Write" << std::endl; std::cout << " In a future step, we could move it to" << std::endl; std::cout << " gdcm Testing, for a systematic checking"<< std::endl; @@ -58,8 +55,8 @@ int main(int argc, char *argv[]) std::string fileName = argv[1]; std::string mode = argv[2]; - f = new gdcm::File( ); - f->SetLoadMode( gdcm::LD_NOSEQ ); + f = new GDCM_NAME_SPACE::File( ); + f->SetLoadMode( GDCM_NAME_SPACE::LD_NOSEQ ); f->SetFileName( fileName ); f->Load( ); @@ -69,7 +66,7 @@ int main(int argc, char *argv[]) return 0; } - fh = new gdcm::FileHelper(f); + fh = new GDCM_NAME_SPACE::FileHelper(f); // --- f->Print();