X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.h;h=97b67cb96f91dce88eec14cee04f27f821565ba9;hb=c67ffef593e7635d8dfa7d3fe63d702e5afafc3e;hp=8e73240d57d54cc019e3cb6dcc98e60d2f09a9c1;hpb=4672e071f29ed17f7258b27e40d47642abfbb53f;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.h b/src/gdcmDicomDirSerie.h index 8e73240d..97b67cb9 100644 --- a/src/gdcmDicomDirSerie.h +++ b/src/gdcmDicomDirSerie.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.h,v $ Language: C++ - Date: $Date: 2004/10/13 14:15:29 $ - Version: $Revision: 1.11 $ + Date: $Date: 2005/01/25 11:11:58 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,46 +20,44 @@ #define GDCMDICOMDIRSERIE_H #include "gdcmDicomDirObject.h" -#include "gdcmDicomDirImage.h" + namespace gdcm { - +class DicomDirImage; //----------------------------------------------------------------------------- typedef std::list ListDicomDirImage; //----------------------------------------------------------------------------- +/** + * \brief describes a SERIE within a within a STUDY + * (DicomDirStudy) of a given DICOMDIR (DicomDir) + */ class GDCM_EXPORT DicomDirSerie : public DicomDirObject { public: - DicomDirSerie( SQItem* s, TagDocEntryHT* ptagHT ); - DicomDirSerie( TagDocEntryHT* ptagHT ); - + DicomDirSerie(bool empty=false); ~DicomDirSerie(); - virtual void Print( std::ostream& os = std::cout ); - virtual void Write( FILE* fp, FileType t ); -/** - * \ingroup DicomDirSerie - * \brief returns the IMAGE chained List for this SERIE. - */ - ListDicomDirImage& GetDicomDirImages() { return images; }; -/** - * \ingroup DicomDirSerie - * \brief adds the passed IMAGE to the IMAGE chained List for this SERIE. - */ - void AddDicomDirImage(DicomDirImage *obj) { images.push_back(obj); }; + void Print( std::ostream &os = std::cout, std::string const & indent = "" ); + void WriteContent( std::ofstream *fp, FileType t ); + + // should avoid exposing internal mechanism + DicomDirImage *GetFirstImage(); + DicomDirImage *GetNextImage(); + DicomDirImage *GetLastImage(); + + /// adds the passed IMAGE to the IMAGE chained List for this SERIE. + void AddImage(DicomDirImage *obj) { Images.push_back(obj); }; + DicomDirImage *NewImage(); + + void ClearImage(); -/** - * \ingroup DicomDirSerie - * \brief TODO - */ - DicomDirImage* NewImage(); - private: -/** -* \brief chained list of DicomDirImages -*/ - ListDicomDirImage images; + + ///chained list of DicomDirImages (to be exploited recursively) + ListDicomDirImage Images; + /// iterator on the DicomDirImages of the current DicomDirSerie + ListDicomDirImage::iterator ItImage; }; } // end namespace gdcm //-----------------------------------------------------------------------------