X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPrintDocument.cxx;h=81da2f317cec05937ada1756b62bdd9ca823b80b;hb=7704f9459285edf11c7bcb4462e23fb864e3523e;hp=412134fe9c5e08aa3475b00267df1142531fb1b9;hpb=c3094723404202f691d827ca89cca24bbd8921e7;p=gdcm.git diff --git a/Example/PrintDocument.cxx b/Example/PrintDocument.cxx index 412134fe..81da2f31 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/06 15:49:31 $ + Version: $Revision: 1.16 $ 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[]) { @@ -56,11 +57,13 @@ int main(int argc, char *argv[]) e1->SetLoadMode(NO_SEQ | NO_SHADOW); e1->Load( fileName.c_str() ); - 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 +78,9 @@ int main(int argc, char *argv[]) } if(e1->IsReadable()) - std::cout <