X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;h=e1f535aef3e882c5ceb5f1ef353b735278fa9630;hb=db08881d6b93af8af99bf1b114c72828454c20a3;hp=dfcf896860b27bc3068b2df5de6e0836578bf715;hpb=6b51b22366f878e1050c75a6ebb755bd2ff365c7;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index dfcf8968..e1f535ae 100644 --- a/src/gdcmDicomDirSerie.h +++ b/src/gdcmDicomDirSerie.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.h,v $ Language: C++ - Date: $Date: 2005/10/25 14:52:33 $ - Version: $Revision: 1.30 $ + Date: $Date: 2007/05/23 14:18:08 $ + 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 @@ -21,12 +21,14 @@ #include "gdcmDicomDirObject.h" -namespace gdcm +namespace GDCM_NAME_SPACE { class DicomDirImage; +class DicomDirPrivate; + //----------------------------------------------------------------------------- typedef std::list ListDicomDirImage; - +typedef std::list ListDicomDirPrivate; //----------------------------------------------------------------------------- /** * \brief describes a SERIE within a within a STUDY @@ -37,12 +39,13 @@ class GDCM_EXPORT DicomDirSerie : public DicomDirObject gdcmTypeMacro(DicomDirSerie); public: +/// \brief Constructs a DicomDirSerie with a RefCounter static DicomDirSerie *New(bool empty=false) {return new DicomDirSerie(empty);} void Print( std::ostream &os = std::cout, std::string const &indent = "" ); void WriteContent( std::ofstream *fp, FileType t ); - // Image methods + // 'Image' methods DicomDirImage *NewImage(); /// Add a new gdcm::DicomDirImage to the Serie void AddImage(DicomDirImage *obj) { Images.push_back(obj); } @@ -51,6 +54,18 @@ public: DicomDirImage *GetFirstImage(); DicomDirImage *GetNextImage(); + // 'Private' methods (For SIEMENS 'CSA non image') + DicomDirPrivate *NewPrivate(); + /// Add a new gdcm::DicomDirPrivate to the Serie + void AddPrivate(DicomDirPrivate *obj) { Privates.push_back(obj); } + void ClearPrivate(); + + DicomDirPrivate *GetFirstPrivate(); + DicomDirPrivate *GetNextPrivate(); + + + virtual void Copy(DocEntrySet *set); + protected: DicomDirSerie(bool empty=false); ~DicomDirSerie(); @@ -61,19 +76,18 @@ private: /// iterator on the DicomDirImages of the current DicomDirSerie ListDicomDirImage::iterator ItImage; + ///chained list of DicomDirPrivates (to be exploited recursively) + ListDicomDirPrivate Privates; + /// iterator on the DicomDirPrivates of the current DicomDirSerie + ListDicomDirPrivate::iterator ItPrivate; /* -// for future use : +// for future use (Full DICOMDIR): /// chained list of DicomDirOverlays(single level) ListDicomDirOverlay Overlays; /// iterator on the DicomDirOverlays of the current DicomDirSerie ListDicomDirOverlay::iterator ItOverlay; - /// chained list of DicomDirModalityLuts(single level) - ListDicomDirModalityLut ModalityLuts; - /// iterator on the DicomDirModalityLuts of the current DicomDirSerie - ListDicomDirModalityLut::iterator ItModalityLut; - /// chained list of DicomDirModalityLuts(single level) ListDicomDirModalityLut ModalityLuts; /// iterator on the DicomDirModalityLuts of the current DicomDirSerie