X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;h=dfcf896860b27bc3068b2df5de6e0836578bf715;hb=0bdb2cf3697eb9f09a5452bfb072563bc0f13e76;hp=78658e0853a80025677d563951633c87865d026e;hpb=a45b09d6e37f0d0c31f62f8ef01b78d3204de51e;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index 78658e08..dfcf8968 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/02/07 14:48:34 $ - Version: $Revision: 1.28 $ + Date: $Date: 2005/10/25 14:52:33 $ + Version: $Revision: 1.30 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,9 +34,10 @@ typedef std::list ListDicomDirImage; */ class GDCM_EXPORT DicomDirSerie : public DicomDirObject { + gdcmTypeMacro(DicomDirSerie); + public: - DicomDirSerie(bool empty=false); - ~DicomDirSerie(); + 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 ); @@ -44,14 +45,17 @@ public: // Image methods DicomDirImage *NewImage(); /// Add a new gdcm::DicomDirImage to the Serie - void AddImage(DicomDirImage *obj) { Images.push_back(obj); }; + void AddImage(DicomDirImage *obj) { Images.push_back(obj); } void ClearImage(); DicomDirImage *GetFirstImage(); DicomDirImage *GetNextImage(); -private: +protected: + DicomDirSerie(bool empty=false); + ~DicomDirSerie(); +private: ///chained list of DicomDirImages (to be exploited recursively) ListDicomDirImage Images; /// iterator on the DicomDirImages of the current DicomDirSerie