X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FBuildUpDicomDir.cxx;h=6de2f2023dc06ae0dca2ace1a647a853d057a206;hb=ebed5ba94d4839a2ef85f6a4c727dfb57816c00d;hp=f531f2cbeaabee0bf6ea2e1ca78fd25b5d63e7b9;hpb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;p=gdcm.git diff --git a/Example/BuildUpDicomDir.cxx b/Example/BuildUpDicomDir.cxx index f531f2cb..6de2f202 100644 --- a/Example/BuildUpDicomDir.cxx +++ b/Example/BuildUpDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: BuildUpDicomDir.cxx,v $ Language: C++ - Date: $Date: 2004/12/03 20:16:55 $ - Version: $Revision: 1.10 $ + Date: $Date: 2005/01/25 15:44:22 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -50,25 +50,25 @@ int main(int argc, char* argv[]) ((gdcm::Document *)dcmdir)->Print(); gdcm::DicomDirPatient *p1=dcmdir->NewPatient(); - p1->SetEntryByNumber("patientONE",0x0010, 0x0010); + p1->SetValEntry("patientONE",0x0010, 0x0010); gdcm::DicomDirPatient *p2=dcmdir->NewPatient(); - p2->SetEntryByNumber("patientTWO",0x0010, 0x0010); + p2->SetValEntry("patientTWO",0x0010, 0x0010); gdcm::DicomDirStudy *s21=p2->NewStudy(); - s21->SetEntryByNumber("StudyDescrTwo.One",0x0008, 0x1030); + s21->SetValEntry("StudyDescrTwo.One",0x0008, 0x1030); gdcm::DicomDirSerie *s211=s21->NewSerie(); gdcm::DicomDirImage *s2111=s211->NewImage(); (void)s2111; //not used gdcm::DicomDirStudy *s11=p1->NewStudy(); - s11->SetEntryByNumber("StudyDescrOne.One",0x0008, 0x1030); + s11->SetValEntry("StudyDescrOne.One",0x0008, 0x1030); // Name of the physician reading study // Header Entry to be created - s11->SetEntryByNumber("Dr Mabuse",0x0008, 0x1060); + s11->SetValEntry("Dr Mabuse",0x0008, 0x1060); gdcm::DicomDirPatient *p3 = dcmdir->NewPatient(); - p3->SetEntryByNumber("patientTHREE",0x0010, 0x0010); + p3->SetValEntry("patientTHREE",0x0010, 0x0010); std::cout << "\n------- BuildUpDicomDir: Test Print of Patient ONE -----\n"; p1->Print();