X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPrintFile.cxx;h=77c00f4ae0ba13e81755cdffd61eaab1d3b6d173;hb=74e3bc05fade5a18f193e7d1122c74756c0e689e;hp=85275e2ea229c37b7f83f7609ebae99568fbd801;hpb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;p=gdcm.git diff --git a/Example/PrintFile.cxx b/Example/PrintFile.cxx index 85275e2e..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/12/03 20:16:55 $ - Version: $Revision: 1.17 $ + 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 @@ -43,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; @@ -88,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->GetPixelReadConverter()->Print(); - std::cout << std::endl << "===========================================" - << std::endl; - }*/ - if(e1->IsReadable()) std::cout <