/*========================================================================= Program: gdcm Module: $RCSfile: gdcmSerieHeader.h,v $ Language: C++ Date: $Date: 2005/01/21 11:40:56 $ Version: $Revision: 1.7 $ 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.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef GDCMSERIEHEADER_H #define GDCMSERIEHEADER_H #include "gdcmCommon.h" #include namespace gdcm { class File; //----------------------------------------------------------------------------- /** * \brief * - This class should be used for a stack of 2D dicom images. */ class GDCM_EXPORT SerieHeader { public: typedef std::list GdcmFileList; SerieHeader(); ~SerieHeader(); /// \todo should return bool or throw error ? void AddFileName(std::string const &filename); void SetDirectory(std::string const &dir); void OrderGdcmFileList(); /// \brief Gets the *coherent* File List /// @return the *coherent* File List /// Caller must call OrderGdcmFileList first const GdcmFileList &GetGdcmFileList() { return CoherentGdcmFileList; } private: bool ImagePositionPatientOrdering(); bool ImageNumberOrdering(); bool FileNameOrdering(); GdcmFileList CoherentGdcmFileList; /// Ref to the current Serie Instance UID to avoid mixing two series /// within the same directory std::string CurrentSerieUID; }; } // end namespace gdcm //----------------------------------------------------------------------------- #endif