X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;fp=src%2FgdcmDicomDirSerie.h;h=dfcf896860b27bc3068b2df5de6e0836578bf715;hb=6b51b22366f878e1050c75a6ebb755bd2ff365c7;hp=27c5adc9cc778de2a78585ed4373d4463e3fba41;hpb=8e5be16bcfd2ba5a93e2692d39add1bc7bfedaf8;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index 27c5adc9..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/09/02 07:10:03 $ - Version: $Revision: 1.29 $ + 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 ); @@ -50,8 +51,11 @@ public: 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