X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.h;h=f5e7ebfc4a4fb835e9f6120f4af32c3a2ef1d26d;hb=edfc14dd195f9759cf02da0959d96d1499d572be;hp=3569e5055a7a131210b7e83a866feb4a9aec4c52;hpb=55d77e0913ff360d639af1841c70d14dc8687584;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.h b/src/gdcmDicomDirPatient.h index 3569e505..f5e7ebfc 100644 --- a/src/gdcmDicomDirPatient.h +++ b/src/gdcmDicomDirPatient.h @@ -1,48 +1,61 @@ -// gdcmDicomDirPatient.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDicomDirPatient.h,v $ + Language: C++ + Date: $Date: 2004/11/25 15:46:11 $ + 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 + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #ifndef GDCMPATIENT_H #define GDCMPATIENT_H -#include "gdcmObject.h" +#include "gdcmDicomDirObject.h" #include "gdcmDicomDirStudy.h" +#include "gdcmSQItem.h" + +namespace gdcm +{ //----------------------------------------------------------------------------- -typedef std::list ListDicomDirStudy; +typedef std::list ListDicomDirStudy; //----------------------------------------------------------------------------- -class GDCM_EXPORT gdcmDicomDirPatient : public gdcmObject +class GDCM_EXPORT DicomDirPatient : public DicomDirObject { public: - gdcmDicomDirPatient(ListTag::iterator begin,ListTag::iterator end, - TagHeaderEntryHT *ptagHT, ListTag *plistEntries); - ~gdcmDicomDirPatient(void); - - virtual void Print(std::ostream &os = std::cout); -/** - * \ingroup gdcmDicomDirPatient - * \brief returns the STUDY chained List for this PATIENT. - */ - inline ListDicomDirStudy &GetDicomDirStudies() - {return studies;}; -/** - * \ingroup gdcmDicomDirPatient - * \brief adds the passed STUDY to the STUDY chained List for this PATIENT. - */ - inline void AddDicomDirStudy(gdcmDicomDirStudy *obj) - {studies.push_back(obj);}; -/** - * \ingroup gdcmDicomDirPatient - * \brief TODO - */ - gdcmDicomDirStudy* NewStudy(void); + DicomDirPatient(SQItem *s, TagDocEntryHT *ptagHT); + DicomDirPatient(TagDocEntryHT *ptagHT); + + ~DicomDirPatient(); + + void Print(std::ostream &os = std::cout); + void WriteContent(std::ofstream *fp, FileType t); + + /// Returns the STUDY chained List for this PATIENT. + ListDicomDirStudy const & GetDicomDirStudies() const { return Studies; }; + + /// adds the passed STUDY to the STUDY chained List for this PATIENT. + void AddDicomDirStudy (DicomDirStudy *obj) { Studies.push_back(obj); }; + + /// TODO + DicomDirStudy* NewStudy(); private: -/** -* \brief chained list of DicomDirStudy -*/ - ListDicomDirStudy studies; + /// chained list of DicomDirStudy + ListDicomDirStudy Studies; }; +} // end namespace gdcm //----------------------------------------------------------------------------- #endif