Program: gdcm
Module: $RCSfile: PrintDicomDir.cxx,v $
Language: C++
- Date: $Date: 2006/01/17 15:36:26 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2006/07/17 13:27:04 $
+ Version: $Revision: 1.33 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
START_USAGE(usage)
" \n PrintDicomDir :\n",
" Display the tree-like structure of a DICOMDIR File",
- " usage: PrintDicomDir filein=fileName [level=n] [debug] ",
+ " usage: PrintDicomDir filein=fileName [level=n][detail=m][debug] ",
" detail = 1 : Patients, 2 : Studies, 3 : Series, 4 : Images ",
" 5 : Full Content ",
" level = 0,1,2 : depending on user (what he wants to see)",
{ // on degouline les STUDY de ce patient
std::cout << "--- Stud.descr:[" << st->GetEntryString(0x0008, 0x1030) << "]"; // Study Description
std::cout << " Stud.ID:[" << st->GetEntryString(0x0020, 0x0010) << "]"; // Study ID
+ std::cout << " Stud.Inst.UID:[" << st->GetEntryString(0x0020, 0x000d) << "]"; // Study Instance UID
std::cout << std::endl;
st = pa->GetNextStudy();
}
{ // on degouline les STUDY de ce patient
std::cout << "--- Stud.descr:[" << st->GetEntryString(0x0008, 0x1030) << "]"; // Study Description
std::cout << " Stud.ID:[" << st->GetEntryString(0x0020, 0x0010) << "]"; // Study ID
+ std::cout << " Stud.Inst.UID:[" << st->GetEntryString(0x0020, 0x000d) << "]"; // Study Instance UID
std::cout << std::endl;
se = st->GetFirstSerie();
std::cout << "--- --- Ser.Descr:["<< se->GetEntryString(0x0008, 0x103e)<< "]"; // Series Description
std::cout << " Ser.nb:[" << se->GetEntryString(0x0020, 0x0011); // Series number
std::cout << "] Mod.:[" << se->GetEntryString(0x0008, 0x0060) << "]"; // Modality
+ std::cout << " Serie Inst.UID.:[" << se->GetEntryString(0x0020, 0x000e) << "]"; // Series Instance UID
std::cout << std::endl;
se = st->GetNextSerie();
}