X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.h;h=e33d4e15135a5c24fc1ec7c9f646eba286ec6e8c;hb=01ecb467c35ed8257eabd5fd189eb645b3f2215b;hp=906c0a63b4838cc39eb7bfd7e25a1e6c1730320e;hpb=fd37aa842b5d31ca266b6bda8a77f3201d02338d;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.h b/src/gdcmDicomDirPatient.h index 906c0a63..e33d4e15 100644 --- a/src/gdcmDicomDirPatient.h +++ b/src/gdcmDicomDirPatient.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirPatient.h,v $ Language: C++ - Date: $Date: 2004/09/27 08:39:06 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/01/11 15:15:38 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,36 +20,44 @@ #define GDCMPATIENT_H #include "gdcmDicomDirObject.h" -#include "gdcmDicomDirStudy.h" -#include "gdcmSQItem.h" + +namespace gdcm +{ +class DicomDirStudy; + //----------------------------------------------------------------------------- -typedef std::list ListDicomDirStudy; +typedef std::list ListDicomDirStudy; //----------------------------------------------------------------------------- -class GDCM_EXPORT gdcmDicomDirPatient : public gdcmDicomDirObject +/** + * \ingroup DicomDirPatient + * \brief describes a PATIENT within a DICOMDIR (DicomDir) + */ + +class GDCM_EXPORT DicomDirPatient : public DicomDirObject { public: - gdcmDicomDirPatient(gdcmSQItem *s, TagDocEntryHT *ptagHT); - gdcmDicomDirPatient(TagDocEntryHT *ptagHT); + DicomDirPatient(); + ~DicomDirPatient(); - ~gdcmDicomDirPatient(); + void Print(std::ostream &os = std::cout); + void WriteContent(std::ofstream *fp, FileType t); - virtual void Print(std::ostream &os = std::cout); - virtual void Write(FILE *fp, FileType t); /// Returns the STUDY chained List for this PATIENT. - ListDicomDirStudy &GetDicomDirStudies() { return studies; }; + ListDicomDirStudy const &GetDicomDirStudies() const { return Studies; }; /// adds the passed STUDY to the STUDY chained List for this PATIENT. - void AddDicomDirStudy(gdcmDicomDirStudy *obj) { studies.push_back(obj); }; + void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); }; /// TODO - gdcmDicomDirStudy* NewStudy(); + DicomDirStudy *NewStudy(); private: /// chained list of DicomDirStudy - ListDicomDirStudy studies; + ListDicomDirStudy Studies; }; +} // end namespace gdcm //----------------------------------------------------------------------------- #endif