X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPrintFile.cxx;h=77c00f4ae0ba13e81755cdffd61eaab1d3b6d173;hb=74e3bc05fade5a18f193e7d1122c74756c0e689e;hp=7cc42f70e5b51bff1f90015f12b11e94b9c7aac7;hpb=e5e7b1bd7ee84e8f9dc7da5d1d42b598fac68399;p=gdcm.git diff --git a/Example/PrintFile.cxx b/Example/PrintFile.cxx index 7cc42f70..77c00f4a 100644 --- a/Example/PrintFile.cxx +++ b/Example/PrintFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintFile.cxx,v $ Language: C++ - Date: $Date: 2004/11/25 10:24:33 $ - Version: $Revision: 1.14 $ + Date: $Date: 2004/12/16 11:37:01 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,8 +15,10 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ +#include "gdcmHeader.h" +#include "gdcmFile.h" + #include -#include "gdcm.h" int main(int argc, char* argv[]) { @@ -41,8 +43,8 @@ int main(int argc, char* argv[]) e1= new gdcm::Header( fileName.c_str() ); f1 = new gdcm::File(e1); - e1->SetPrintLevel(2); - e1->Print(); + f1->SetPrintLevel(2); + f1->Print(); std::cout << "\n\n" << std::endl; @@ -86,19 +88,6 @@ int main(int argc, char* argv[]) std::string transferSyntaxName = e1->GetTransfertSyntaxName(); std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" << std::endl; - if ( transferSyntaxName != "Implicit VR - Little Endian" - && transferSyntaxName != "Explicit VR - Little Endian" - && transferSyntaxName != "Deflated Explicit VR - Little Endian" - && transferSyntaxName != "Explicit VR - Big Endian" - && transferSyntaxName != "Uncompressed ACR-NEMA" ) - { - std::cout << std::endl << "===========================================" - << std::endl; - f1->GetPixelConverter()->Print(); - std::cout << std::endl << "===========================================" - << std::endl; - } - if(e1->IsReadable()) std::cout <