X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FPrintDicomDir.cxx;h=8d3f714e176dfc56a3b81d87aa5c33526fce92a8;hb=693be63ee7a331d55d3791caa637e40679f31251;hp=8f6e250915d7a498b807751d4c5d00ee1597ca45;hpb=8670efa6c3fc51c51fe71c2f62af2297a19b07e2;p=gdcm.git diff --git a/Example/PrintDicomDir.cxx b/Example/PrintDicomDir.cxx index 8f6e2509..8d3f714e 100644 --- a/Example/PrintDicomDir.cxx +++ b/Example/PrintDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/02/01 10:34:59 $ - Version: $Revision: 1.19 $ + Date: $Date: 2005/04/26 16:21:54 $ + 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 @@ -50,14 +50,14 @@ int main(int argc, char* argv[]) if (argc > 3) gdcm::Debug::DebugOn(); + // new style is useless, since it has no effect fore *reading* a DICOMDIR + // (only meaningfull when *creating* a DICOMDIR) + e1 = new gdcm::DicomDir( fileName ); - e1->SetPrintLevel(2); - int detailLevel; - if (argc > 2) - detailLevel = atoi(argv[2]); - else - detailLevel = 3; + //e1 = new gdcm::DicomDir(); + //e1->SetParseDir(false); + //e1->Load( fileName ); // Test if the DicomDir is readable if( !e1->IsReadable() ) @@ -70,6 +70,13 @@ int main(int argc, char* argv[]) return 1; } + e1->SetPrintLevel(2); + int detailLevel; + if (argc > 2) + detailLevel = atoi(argv[2]); + else + detailLevel = 3; + // Test if the DicomDir contains any Patient pa = e1->GetFirstPatient(); if ( pa == 0)