X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FPrintDicomDir.cxx;h=dc82ec88506064d5109af6695ee7328aed55097c;hb=317592bf538baef94dbc465c9bb1aea77e217d10;hp=29dfdc800a0655b8535bb22a16877cf967f972bf;hpb=6b51b22366f878e1050c75a6ebb755bd2ff365c7;p=gdcm.git diff --git a/Example/PrintDicomDir.cxx b/Example/PrintDicomDir.cxx index 29dfdc80..dc82ec88 100644 --- a/Example/PrintDicomDir.cxx +++ b/Example/PrintDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/10/25 14:52:27 $ - Version: $Revision: 1.30 $ + Date: $Date: 2006/01/18 15:45:21 $ + Version: $Revision: 1.32 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -35,7 +35,7 @@ int main(int argc, char* argv[]) 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)", @@ -218,6 +218,7 @@ int main(int argc, char* argv[]) { // 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; vs = st->GetFirstVisit(); @@ -225,9 +226,9 @@ int main(int argc, char* argv[]) { // on degouline les VISIT de cette study std::cout << "--- --- VISIT: "; std::cout << " Ref. File ID :[" << vs->GetEntryString(0x0004, 0x1500) << "]"; // Referenced File ID - std::cout << " Inst.Name:[" << vs->GetEntryString(0x0008,0x0080) << "]"; // Institution Name - std::cout << " Adm.ID:[" << vs->GetEntryString(0x0038, 0x0010) << "]"; // Admission ID - std::cout << " Adm. date:[" << vs->GetEntryString(0x0038, 0x0020) << "]"; // Admitting Date + std::cout << " Inst.Name:[" << vs->GetEntryString(0x0008,0x0080) << "]"; // Institution Name + std::cout << " Adm.ID:[" << vs->GetEntryString(0x0038, 0x0010) << "]"; // Admission ID + std::cout << " Adm. date:[" << vs->GetEntryString(0x0038, 0x0020) << "]"; // Admitting Date std::cout << std::endl; vs = st->GetNextVisit(); } @@ -235,9 +236,10 @@ int main(int argc, char* argv[]) se = st->GetFirstSerie(); while ( se ) { // on degouline les SERIES de cette study - 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 << "--- --- 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; im = se->GetFirstImage();