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/22 16:14:03 $
+ Version: $Revision: 1.34 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
=========================================================================*/
-#ifndef GDCMPATIENT_H
-#define GDCMPATIENT_H
+#ifndef _GDCMPATIENT_H_
+#define _GDCMPATIENT_H_
#include "gdcmDicomDirObject.h"
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();
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: