X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeaderHelper.h;h=f2305d414c756d701242edea29135f90033beca4;hb=8bf45262260369e9f9f773c5793acb4924639cc1;hp=1cf6601558e17abe0f9c71773ebd096030770f2d;hpb=967978854b861e9b06fbd89b93e77d9ed984cce2;p=gdcm.git diff --git a/src/gdcmHeaderHelper.h b/src/gdcmHeaderHelper.h index 1cf66015..f2305d41 100644 --- a/src/gdcmHeaderHelper.h +++ b/src/gdcmHeaderHelper.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmHeaderHelper.h,v $ Language: C++ - Date: $Date: 2004/06/25 20:48:25 $ - Version: $Revision: 1.19 $ + Date: $Date: 2004/07/02 13:55:28 $ + Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -35,27 +35,21 @@ public: gdcmSerieHeader(); ~gdcmSerieHeader(); - void AddFileName(std::string const & filename); //should return bool or throw error ? + /// \todo should return bool or throw error ? + void AddFileName(std::string const & filename); void AddGdcmFile(gdcmHeader *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. + gdcmHeader* GetGdcmHeader() { return CoherentGdcmFileList.front(); } typedef std::list GdcmHeaderList; - /** - * \brief Gets the *coherent* File List - * @return the *coherent* File List - */ - const GdcmHeaderList& GetGdcmFileList() - { - return CoherentGdcmFileList; - } + + /// \brief Gets the *coherent* File List + /// @return the *coherent* File List + const GdcmHeaderList& GetGdcmFileList() { return CoherentGdcmFileList; } private: bool ImagePositionPatientOrdering();