X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomDir.cxx;h=11f8aa6d5d4754c42a3445a6fda4c36c9cd7c804;hb=9a8932b74aab77d55d7b478b1996611c7d588daa;hp=9b6855b701d89420ce598f5ac0fee3bf50ac3d29;hpb=3b0f255e96f0f6cd246bd69c7dcc31443bc75bbb;p=gdcm.git diff --git a/Testing/TestDicomDir.cxx b/Testing/TestDicomDir.cxx index 9b6855b7..11f8aa6d 100644 --- a/Testing/TestDicomDir.cxx +++ b/Testing/TestDicomDir.cxx @@ -31,14 +31,16 @@ int testDicomDir(int argc, char* argv[]) std::string file; if (argc > 1) file = argv[1]; - else - file = "../gdcmData/DICOMDIR"; - + else { + file += GDCM_DATA_ROOT; + file += "/DICOMDIR"; + } + 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() ) { @@ -46,7 +48,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 /*