X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestPrintAllDocument.cxx;h=5b8db1d62cacd719bbe5f11cdbde9ecaa78567e6;hb=5071bc6d73c22304b8b139d040a02eb3e1f33407;hp=f60c3680de97455fd9a563baf72759b87b8d73c0;hpb=a14c75b5ea14486bc60c32ce11ae8c6ae6428ba1;p=gdcm.git diff --git a/Testing/TestPrintAllDocument.cxx b/Testing/TestPrintAllDocument.cxx index f60c3680..5b8db1d6 100644 --- a/Testing/TestPrintAllDocument.cxx +++ b/Testing/TestPrintAllDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestPrintAllDocument.cxx,v $ Language: C++ - Date: $Date: 2007/06/21 16:18:02 $ - Version: $Revision: 1.15 $ + Date: $Date: 2007/06/22 11:01:58 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -45,7 +45,7 @@ int TestPrintAllDocument(int argc, char *argv[]) int swapC; unsigned int j; std::string pixelType, photomInterp; - int l; + unsigned int l; l = strlen("PALETTE COLOR "); //gdcm::Debug::DebugOn(); @@ -79,7 +79,7 @@ int TestPrintAllDocument(int argc, char *argv[]) //std::cout << s.str() << gdcmDataImages[i]; std::cout << gdcmDataImages[i]; -/* + unsigned int nbSpaces; if (strlen(gdcmDataImages[i]) <= 60) nbSpaces = 60-strlen(gdcmDataImages[i]); @@ -94,11 +94,13 @@ int TestPrintAllDocument(int argc, char *argv[]) std::cout << " "; std::cout << " Smpl.P.Pix.=" << f->GetSamplesPerPixel() << " Plan.Config.=" << f->GetPlanarConfiguration(); - + photomInterp = f->GetEntryString(0x0028,0x0004); - std::cout << " Photom.Interp.=" << photomInterp; - for (j=0; j photomInterp.length()) + for (j=0; jGetTransferSyntaxName() << "]" ; @@ -121,7 +123,7 @@ int TestPrintAllDocument(int argc, char *argv[]) << std::endl; o->Delete(); } -*/ + if( f->IsReadable() ) { std::cout <