X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSerieHeader.h;h=b6a8a76da083d6e308a6452055b68c6027611e10;hb=8a69df0f4018beae8c78a35bef30590e318128e5;hp=1a94d7cd49c545790d19cad702e0cb9014677ac0;hpb=327dfe7647e3720b0f3125f9b19397cb9afc0ed3;p=gdcm.git diff --git a/src/gdcmSerieHeader.h b/src/gdcmSerieHeader.h index 1a94d7cd..b6a8a76d 100644 --- a/src/gdcmSerieHeader.h +++ b/src/gdcmSerieHeader.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSerieHeader.h,v $ Language: C++ - Date: $Date: 2005/01/06 20:03:28 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/01/14 21:30:53 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,33 +26,28 @@ namespace gdcm { class Header; //----------------------------------------------------------------------------- -/* - * \defgroup SerieHeader +/** + * \ingroup SerieHeader * \brief - * * - This class should be used for a stack of 2D dicom images. * - For a multiframe dicom image better use directly SerieHeader */ class GDCM_EXPORT SerieHeader { public: + typedef std::list GdcmHeaderList; + SerieHeader(); ~SerieHeader(); /// \todo should return bool or throw error ? void AddFileName(std::string const &filename); - void AddGdcmFile(Header *file); void SetDirectory(std::string const &dir); void OrderGdcmFileList(); - /// \warning Assumes all elements in the list have the same global infos. - /// Assumes the list is not empty. - Header *GetGdcmHeader() { return CoherentGdcmFileList.front(); } - - typedef std::list GdcmHeaderList; - /// \brief Gets the *coherent* File List /// @return the *coherent* File List + /// Caller must call OrderGdcmFileList first const GdcmHeaderList &GetGdcmFileList() { return CoherentGdcmFileList; } private: @@ -61,6 +56,9 @@ private: bool FileNameOrdering(); GdcmHeaderList CoherentGdcmFileList; + /// Ref to the current Serie Instance UID to avoid mixing two series + /// within the same directory + std::string CurrentSerieUID; }; } // end namespace gdcm