X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeaderHelper.h;h=5dc42bfc916e123e479e13b4da4c32380f6fc559;hb=a29372bd2461600cd7a4c762082bc43aea70058f;hp=1cf6601558e17abe0f9c71773ebd096030770f2d;hpb=967978854b861e9b06fbd89b93e77d9ed984cce2;p=gdcm.git diff --git a/src/gdcmHeaderHelper.h b/src/gdcmHeaderHelper.h index 1cf66015..5dc42bfc 100644 --- a/src/gdcmHeaderHelper.h +++ b/src/gdcmHeaderHelper.h @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmHeaderHelper.h,v $ Language: C++ - Date: $Date: 2004/06/25 20:48:25 $ - Version: $Revision: 1.19 $ + Date: $Date: 2004/10/12 04:35:46 $ + Version: $Revision: 1.22 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -21,41 +21,38 @@ #include "gdcmHeader.h" +namespace gdcm +{ + //----------------------------------------------------------------------------- /* - * \defgroup gdcmSerieHeader + * \defgroup SerieHeader * \brief * * - This class should be used for a stack of 2D dicom images. - * - For a multiframe dicom image better use directly gdcmHeaderHelper + * - For a multiframe dicom image better use directly HeaderHelper */ -class GDCM_EXPORT gdcmSerieHeader +class GDCM_EXPORT SerieHeader { public: - gdcmSerieHeader(); - ~gdcmSerieHeader(); + SerieHeader(); + ~SerieHeader(); - void AddFileName(std::string const & filename); //should return bool or throw error ? - void AddGdcmFile(gdcmHeader *file); + /// \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(); - inline gdcmHeader *GetGdcmHeader() - { - // Assume all element in the list have the same global infos - // Assume the list is not empty - return CoherentGdcmFileList.front(); - } + /// \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 - */ - const GdcmHeaderList& GetGdcmFileList() - { - return CoherentGdcmFileList; - } + typedef std::list GdcmHeaderList; + + /// \brief Gets the *coherent* File List + /// @return the *coherent* File List + const GdcmHeaderList& GetGdcmFileList() { return CoherentGdcmFileList; } private: bool ImagePositionPatientOrdering(); @@ -65,5 +62,7 @@ private: GdcmHeaderList CoherentGdcmFileList; }; +} // end namespace gdcm + //----------------------------------------------------------------------------- #endif