From: jpr Date: Thu, 26 Aug 2004 15:30:38 +0000 (+0000) Subject: minor updates X-Git-Tag: Version0.5.bp~9 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=018ae9242a852cb91debaf71951d00876fc3d876;p=gdcm.git minor updates --- diff --git a/Example/BuildUpDicomDir.cxx b/Example/BuildUpDicomDir.cxx index c52275f5..c95e7072 100644 --- a/Example/BuildUpDicomDir.cxx +++ b/Example/BuildUpDicomDir.cxx @@ -43,7 +43,7 @@ int main(int argc, char* argv[]) { if (argc) { - std::cerr << "Usage: " << argv[0] << " dummy "; + // std::cerr << "Usage: " << argv[0] << " dummy "; } gdcmDicomDir *dcmdir; diff --git a/Example/PrintDicomDir.cxx b/Example/PrintDicomDir.cxx index 00adffc0..852ba533 100644 --- a/Example/PrintDicomDir.cxx +++ b/Example/PrintDicomDir.cxx @@ -130,11 +130,11 @@ int main(int argc, char* argv[]) */ - cout << std::endl << std::endl - << " = DICOMDIR full content ==========================================" - << std::endl<< std::endl; - e1->Print(); - +// cout << std::endl << std::endl +// << " = DICOMDIR full content ==========================================" +// << std::endl<< std::endl; +// e1->Print(); + std::cout<Print(); - std::cout << "---after constructor; Print as a DICOMDIR ------" << std::endl; - dcmdir->Print(); + dcmdir=new gdcmDicomDir(dirName, true); // we ask for Directory parsing dcmdir->SetStartMethod(StartMethod, (void *) NULL); dcmdir->SetEndMethod(EndMethod); - - std::cout << "---before ParseDirectory------------------" << std::endl; - dcmdir->ParseDirectory(); - std::cout << "---after ParseDirectory------------------" << std::endl; ListDicomDirPatient lp = dcmdir->GetDicomDirPatients(); if (! lp.size() ) @@ -80,14 +72,13 @@ int main(int argc, char* argv[]) { << std::endl; return 1; } - gdcmDicomDirPatient *p = *(lp.begin()); - dcmdir->SetPrintLevel(2); - p->Print(); - std::cout << "---------------------" << std::endl; - dcmdir->SetPrintLevel(-1); - dcmdir->Print(); + std::cout << "--------- dcmdir->Print() ------------" << std::endl; + dcmdir->SetPrintLevel(-1); + //dcmdir->Print(); // just to see + std::cout << "---------end dcmdir->Print() ------------" << std::endl; + dcmdir->Write("NewDICOMDIR"); std::cout<