]> Creatis software - gdcm.git/commitdiff
Add methods to get number of objets
authorjpr <jpr>
Mon, 20 Aug 2007 13:24:04 +0000 (13:24 +0000)
committerjpr <jpr>
Mon, 20 Aug 2007 13:24:04 +0000 (13:24 +0000)
src/gdcmDicomDir.h
src/gdcmDicomDirPatient.h
src/gdcmDicomDirSerie.h
src/gdcmDicomDirStudy.h

index ebe30795bcf604c5b1a04c4e90dfa80ddb1b53c6..d13b038a70d71e3db1099e076fba4467038a23e8 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.h,v $
   Language:  C++
-  Date:      $Date: 2007/05/23 14:18:08 $
-  Version:   $Revision: 1.79 $
+  Date:      $Date: 2007/08/20 13:24:04 $
+  Version:   $Revision: 1.80 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -88,7 +88,9 @@ public:
 
    DicomDirPatient *GetFirstPatient();
    DicomDirPatient *GetNextPatient();
-
+   /// returns the number of Patients currently held in the gdcm::DicomDir
+   int              GetNumberOfPatients() { return Patients.size();}
+   
    // Parsing
    void ParseDirectory();
 
index 9b6dfaa9a6c135492bcde140caa0f4e23aef611c..a33e98053e3950a934f2ed2309876fac4c8bcfc5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirPatient.h,v $
   Language:  C++
-  Date:      $Date: 2007/07/26 08:36:49 $
-  Version:   $Revision: 1.32 $
+  Date:      $Date: 2007/08/20 13:24: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
@@ -45,7 +45,7 @@ public:
    void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements);
   
    // Patient methods
-   /// \brief Adds a new gdcmDicomDirStudy to the Patient
+   /// \brief Adds a new gdcm::DicomDirStudy to the Patient
    void AddStudy(DicomDirStudy *obj) { Studies.push_back(obj); }
    DicomDirStudy *NewStudy(); 
    void ClearStudy();
@@ -53,7 +53,8 @@ public:
    DicomDirStudy *GetFirstStudy();
    DicomDirStudy *GetNextStudy();
    DicomDirStudy *GetLastStudy();
-
+   /// returns the number of Studies currently held in the gdcm::DicomDirPatient
+   int            GetNumberOfStudies() { return Studies.size();}
    virtual void Copy(DocEntrySet *set);
 
 protected:
index e2fa2e8fcfeb34360673cb517a08b5beb17ee19a..4c0988029a9aaf294be0f2c02612dd3d00354aa5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.h,v $
   Language:  C++
-  Date:      $Date: 2007/07/26 08:36:49 $
-  Version:   $Revision: 1.35 $
+  Date:      $Date: 2007/08/20 13:24:04 $
+  Version:   $Revision: 1.36 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -53,7 +53,9 @@ public:
 
    DicomDirImage *GetFirstImage();
    DicomDirImage *GetNextImage();
-
+   /// returns the number of Images currently held in the gdcm::DicomDirSerie
+   int            GetNumberOfImages() { return Images.size();}
+   
    // 'Private' methods (For SIEMENS 'CSA non image')
    DicomDirPrivate *NewPrivate();
    /// Add a new gdcm::DicomDirPrivate to the Serie
@@ -62,7 +64,8 @@ public:
 
    DicomDirPrivate *GetFirstPrivate();
    DicomDirPrivate *GetNextPrivate();   
-   
+   /// returns the number of 'Privates' currently held in the gdcm::DicomDirSerie
+   int             GetNumberOfPrivates() { return Privates.size();}   
    
    virtual void Copy(DocEntrySet *set);
 
index 17b4bb4463c3969907187f45c2d398de5fcb698e..56dcb3cfc118982b148c49c26cd27fbabf3b032d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.h,v $
   Language:  C++
-  Date:      $Date: 2007/07/26 08:36:49 $
-  Version:   $Revision: 1.34 $
+  Date:      $Date: 2007/08/20 13:24:04 $
+  Version:   $Revision: 1.35 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -59,7 +59,9 @@ public:
    DicomDirSerie *GetFirstSerie();
    DicomDirSerie *GetNextSerie();
    DicomDirSerie *GetLastSerie();
-
+   /// returns the number of Series currently held in the gdcm::DicomDirStudy
+   int            GetNumberOfSeries() { return Series.size();}
+   
    // 'Visit' methods
    DicomDirVisit *NewVisit();
    /// Adds a gdcm::DicomDirVisit to a gdcm::DicomDirStudy
@@ -68,7 +70,9 @@ public:
    DicomDirVisit *GetFirstVisit();
    DicomDirVisit *GetNextVisit();
    DicomDirVisit *GetLastVisit();
-   
+   /// returns the number of Visit currently held in the gdcm::DicomDirStudy
+   int            GetNumberOfVisits() { return Visits.size();}
+      
    // for future use (Full DICOMDIR)
 /*
    DicomDirResult *GetFirstResult();