00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef __MITK_FILE_SERIES_READER__H_ 00020 #define __MITK_FILE_SERIES_READER__H_ 00021 00022 #include <mitkCommon.h> 00023 #include <mitkFileReader.h> 00024 #include <vector> 00025 #include <string> 00026 00027 namespace mitk 00028 { 00029 00035 class MITK_CORE_EXPORT FileSeriesReader : public FileReader 00036 { 00037 public: 00038 mitkClassMacro( FileSeriesReader, FileReader ); 00039 00040 typedef std::vector< std::string > MatchedFileNames; 00041 00042 virtual MatchedFileNames GetMatchedFileNames( ); 00043 00044 protected: 00045 00046 FileSeriesReader(); 00047 00048 virtual ~FileSeriesReader(); 00049 00050 virtual bool GenerateFileList(); 00051 00052 std::string m_FileName; 00053 00054 std::string m_FilePrefix; 00055 00056 std::string m_FilePattern; 00057 00058 MatchedFileNames m_MatchedFileNames; 00059 }; 00060 00061 } 00062 00063 #endif 00064 00065