X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPrintDocument.cxx;h=fdce422fb04bd84f7b623287c7fed54f2f74627a;hb=34e322ceb4e12797e6d4cb1e691a36425015d2e0;hp=412134fe9c5e08aa3475b00267df1142531fb1b9;hpb=c3094723404202f691d827ca89cca24bbd8921e7;p=gdcm.git diff --git a/Example/PrintDocument.cxx b/Example/PrintDocument.cxx index 412134fe..fdce422f 100644 --- a/Example/PrintDocument.cxx +++ b/Example/PrintDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintDocument.cxx,v $ Language: C++ - Date: $Date: 2005/04/26 16:21:54 $ - Version: $Revision: 1.14 $ + Date: $Date: 2005/07/19 15:19:25 $ + 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 @@ -19,6 +19,7 @@ #include "gdcmDebug.h" #include +#include //for atoi int main(int argc, char *argv[]) { @@ -54,13 +55,16 @@ int main(int argc, char *argv[]) if (argc > 4) e1->SetLoadMode(NO_SEQ | NO_SHADOW); - e1->Load( fileName.c_str() ); + e1->SetFileName( fileName.c_str() ); + e1->Load( ); - if ( !e1->IsReadable() ) - { - delete e1; - return 0; - } +// we use PrintDocument, because we want to print what we get + +// if ( !e1->IsReadable() ) +// { +// delete e1; +// return 0; +// } e1->Print(); @@ -75,9 +79,9 @@ int main(int argc, char *argv[]) } if(e1->IsReadable()) - std::cout <