]> Creatis software - gdcm.git/blobdiff - Example/BuildUpDicomDir.cxx
Stage 3 of normalization :
[gdcm.git] / Example / BuildUpDicomDir.cxx
index 66df934f9988ce4ca09418175f0036397e92bbff..a56fa9f8ab66a7ac01fe03f5422336609bf9f044 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: BuildUpDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/08 15:03:57 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2005/01/24 16:10:49 $
+  Version:   $Revision: 1.12 $
                                                                                 
   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->SetEntry("patientONE",0x0010, 0x0010);
+   p1->SetEntryValue("patientONE",0x0010, 0x0010);
 
      
    gdcm::DicomDirPatient *p2=dcmdir->NewPatient();
-   p2->SetEntry("patientTWO",0x0010, 0x0010);     
+   p2->SetEntryValue("patientTWO",0x0010, 0x0010);     
    gdcm::DicomDirStudy *s21=p2->NewStudy();  
-       s21->SetEntry("StudyDescrTwo.One",0x0008, 0x1030);        
+       s21->SetEntryValue("StudyDescrTwo.One",0x0008, 0x1030);        
    gdcm::DicomDirSerie *s211=s21->NewSerie();   
    gdcm::DicomDirImage *s2111=s211->NewImage();
    (void)s2111; //not used
 
    gdcm::DicomDirStudy *s11=p1->NewStudy();  
-   s11->SetEntry("StudyDescrOne.One",0x0008, 0x1030);
+   s11->SetEntryValue("StudyDescrOne.One",0x0008, 0x1030);
    // Name of the physician reading study
    // Header Entry to be created
-   s11->SetEntry("Dr Mabuse",0x0008, 0x1060);
+   s11->SetEntryValue("Dr Mabuse",0x0008, 0x1060);
 
    gdcm::DicomDirPatient *p3 = dcmdir->NewPatient();
-   p3->SetEntry("patientTHREE",0x0010, 0x0010);
+   p3->SetEntryValue("patientTHREE",0x0010, 0x0010);
 
    std::cout << "\n------- BuildUpDicomDir: Test Print of Patient ONE -----\n";
    p1->Print();