X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.h;h=afe52f85b3b498e83800740a92a02edacfab737c;hb=afce239e3e7c343cb843b1767fc3ff11c540a3bb;hp=bc8245abc1002ad9bd211b154c87ceb27bcece56;hpb=1e670813be403bc4ecd88fb78405d0a8969fca6c;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.h b/src/gdcmDicomDirStudy.h index bc8245ab..afe52f85 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/29 12:48:46 $ + Version: $Revision: 1.32 $ 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,14 @@ public: DicomDirStudyComponent *GetNextStudyComponent(); DicomDirStudyComponent *GetLastStudyComponent(); */ -private: + virtual void Copy(DocEntrySet *set); + +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