X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.h;h=6806dc2ffe17dd1c841d945999e23a6507e44464;hb=71e4d3f94788734baf92e3fe161d4e6146c08fa8;hp=bc8245abc1002ad9bd211b154c87ceb27bcece56;hpb=1e670813be403bc4ecd88fb78405d0a8969fca6c;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.h b/src/gdcmDicomDirStudy.h index bc8245ab..6806dc2f 100644 --- a/src/gdcmDicomDirStudy.h +++ b/src/gdcmDicomDirStudy.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.h,v $ Language: C++ - Date: $Date: 2005/09/02 07:10:03 $ - Version: $Revision: 1.29 $ + Date: $Date: 2005/11/21 09:46:25 $ + Version: $Revision: 1.31 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -42,9 +42,11 @@ typedef std::list ListDicomDirStudyComponent; */ class GDCM_EXPORT DicomDirStudy : public DicomDirObject { + gdcmTypeMacro(DicomDirStudy); + public: - DicomDirStudy(bool empty=false); - ~DicomDirStudy(); +/// \brief Constructs a DicomDirStudy with a RefCounter + static DicomDirStudy *New(bool empty=false) {return new DicomDirStudy(empty);} void Print(std::ostream &os = std::cout, std::string const &indent = "" ); void WriteContent(std::ofstream *fp, FileType t); @@ -77,8 +79,12 @@ public: DicomDirStudyComponent *GetNextStudyComponent(); DicomDirStudyComponent *GetLastStudyComponent(); */ -private: +protected: + DicomDirStudy(bool empty=false); + ~DicomDirStudy(); + +private: /// chained list of DicomDirSeries (to be exploited hierarchicaly) ListDicomDirSerie Series; /// iterator on the DicomDirSeries of the current DicomDirStudy