X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomDir.cxx;h=aa4c176d7a086723b80d0cee9752d67f6ea9f70b;hb=3f0c0dc58eba64083f79a898d6f60119cd448650;hp=1cccb798bd5a265cf6f6685c54c9eb1b4a29f2c7;hpb=8b0d3c6c373474dc31af9eb56cf949298a723a76;p=gdcm.git diff --git a/Testing/TestDicomDir.cxx b/Testing/TestDicomDir.cxx index 1cccb798..aa4c176d 100644 --- a/Testing/TestDicomDir.cxx +++ b/Testing/TestDicomDir.cxx @@ -4,20 +4,8 @@ #include "gdcmDicomDir.h" #include -#ifdef GDCM_NO_ANSI_STRING_STREAM -# include -# define ostringstream ostrstream -# else -# include -#endif -#include -#include - -#define ostringstream ostrstream -//extern "C" - -int testDicomDir(int argc, char* argv[]) +int TestDicomDir(int argc, char* argv[]) { gdcmDicomDir *e1; ListTag::iterator deb , fin; @@ -37,10 +25,10 @@ int testDicomDir(int argc, char* argv[]) } e1 = new gdcmDicomDir(file.c_str()); - if (argc > 2) { - int level = atoi(argv[2]); - e1->SetPrintLevel(level); - } + if (argc > 2) { + int level = atoi(argv[2]); + e1->SetPrintLevel(level); + } if(e1->GetDicomDirPatients().begin() == e1->GetDicomDirPatients().end() ) { @@ -48,7 +36,7 @@ int testDicomDir(int argc, char* argv[]) return(1); } -// Exemples exploitation de la structure +// Simple examples of structure exploitation // DON'T REMOVE neither the folowing code, nor the commented out lines /*