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() )
{
return(1);
}
-// Exemples exploitation de la structure
+// Simple examples of structure exploitation
// DON'T REMOVE neither the folowing code, nor the commented out lines
/*