#define ostringstream ostrstream
//extern "C"
-using namespace std;
-int main(int argc, char* argv[])
+int testDicomDir(int argc, char* argv[])
{
gdcmDicomDir *e1;
ListTag::iterator deb , fin;
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]);
}
*/
- cout << std::endl << std::endl
+ std::cout << std::endl << std::endl
<< " = Liste des PATIENT/STUDY/SERIE =========================================="
<< std::endl<< std::endl;
}
*/
- cout << std::endl << std::endl
+ std::cout << std::endl << std::endl
<< " = Contenu Complet du DICOMDIR =========================================="
<< std::endl<< std::endl;
e1->Print();