From 9de391fb02a9a2aada30524f36816135afd98a3f Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 12 Jan 2005 11:40:50 +0000 Subject: [PATCH] Add verbosity --- Example/PrintFile.cxx | 10 +++++++--- Example/PrintHeader.cxx | 10 ++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Example/PrintFile.cxx b/Example/PrintFile.cxx index 45bc35f3..25f44cf6 100644 --- a/Example/PrintFile.cxx +++ b/Example/PrintFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintFile.cxx,v $ Language: C++ - Date: $Date: 2005/01/11 11:37:13 $ - Version: $Revision: 1.20 $ + Date: $Date: 2005/01/12 11:40:50 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -28,7 +28,8 @@ int main(int argc, char* argv[]) std::string fileName; if (argc != 2) { - std::cout << " usage : PrintDocument fileName" << std::endl; + std::cout << " usage : PrintDocument fileName printLevel debug" + << std::endl; } if (argc > 1) @@ -53,6 +54,8 @@ int main(int argc, char* argv[]) e1->SetPrintLevel(level); } + e1->Print(); + std::cout << "\n\n" << std::endl; std::cout <GetTransferSyntaxName(); std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" << std::endl; + std::cout << " SwapCode= " << e1->GetSwapCode() << std::endl; if(e1->IsReadable()) std::cout < 1) @@ -63,7 +63,9 @@ int main(int argc, char* argv[]) } std::string transferSyntaxName = e1->GetTransferSyntaxName(); - std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" << std::endl; + std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" + << std::endl; + std::cout << " SwapCode= " << e1->GetSwapCode() << std::endl; if(e1->IsReadable()) std::cout <