X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.h;h=705788b970c34445f6af8171a07902a4e25aa818;hb=8ac4df8c7543a827c7b89fc9bbcf86625f3c1afe;hp=4c69b7b0a7670934fca90b526bb2bced3a0fe9c8;hpb=22f785a2627d1e7823701193bd7624739a3e033b;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.h b/src/gdcmDicomDirStudy.h index 4c69b7b0..705788b9 100644 --- a/src/gdcmDicomDirStudy.h +++ b/src/gdcmDicomDirStudy.h @@ -1,26 +1,62 @@ -// gdcmDicomDirStudy.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDicomDirStudy.h,v $ + Language: C++ + Date: $Date: 2004/09/27 08:39:06 $ + Version: $Revision: 1.9 $ + + 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 GDCMDICOMDIRSTUDY_H #define GDCMDICOMDIRSTUDY_H -#include "gdcmObject.h" +#include "gdcmDicomDirObject.h" #include "gdcmDicomDirSerie.h" //----------------------------------------------------------------------------- typedef std::list ListDicomDirSerie; //----------------------------------------------------------------------------- -class GDCM_EXPORT gdcmDicomDirStudy : public gdcmObject { +class GDCM_EXPORT gdcmDicomDirStudy : public gdcmDicomDirObject +{ public: - gdcmDicomDirStudy(ListTag::iterator begin,ListTag::iterator end); - ~gdcmDicomDirStudy(void); + gdcmDicomDirStudy(gdcmSQItem *s, TagDocEntryHT *ptagHT); + gdcmDicomDirStudy(TagDocEntryHT *ptagHT); - virtual void Print(std::ostream &os = std::cout); + ~gdcmDicomDirStudy(); - inline ListDicomDirSerie &GetDicomDirSeries() {return series;}; - inline void AddDicomDirSerie(gdcmDicomDirSerie *obj) {series.push_back(obj);}; + virtual void Print(std::ostream &os = std::cout); + virtual void Write(FILE *fp, FileType t); +/** + * \ingroup gdcmDicomDirStudy + * \brief returns the SERIE chained List for this STUDY. + */ + ListDicomDirSerie &GetDicomDirSeries() { return series; }; +/** + * \ingroup gdcmDicomDirStudy + * \brief adds the passed SERIE to the SERIE chained List for this STUDY. + */ + void AddDicomDirSerie(gdcmDicomDirSerie *obj) { series.push_back(obj); }; +/** + * \ingroup gdcmDicomDirStudy + * \brief TODO + */ + gdcmDicomDirSerie* NewSerie(); + private: +/** +* \brief chained list of DicomDirSeries (to be exploited recursively) +*/ ListDicomDirSerie series; };