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 FILEREADER_H_HEADER_INCLUDED_C1E7E521 00020 #define FILEREADER_H_HEADER_INCLUDED_C1E7E521 00021 00022 #include "mitkCommon.h" 00023 00024 namespace mitk { 00025 00026 //##Documentation 00027 //## @brief Interface class of readers that read from files 00028 //## @ingroup Process 00029 class MITK_CORE_EXPORT FileReader 00030 { 00031 public: 00032 //##Documentation 00033 //## @brief Get the specified the file to load. 00034 //## 00035 //## Either the FileName or FilePrefix plus FilePattern are used to read. 00036 virtual const char* GetFileName() const = 0; 00037 00038 //##Documentation 00039 //## @brief Specify the file to load. 00040 //## 00041 //## Either the FileName or FilePrefix plus FilePattern are used to read. 00042 virtual void SetFileName(const char* aFileName) = 0; 00043 00044 //##Documentation 00045 //## @brief Get the specified file prefix for the file(s) to load. 00046 //## 00047 //## You should specify either a FileName or FilePrefix. Use FilePrefix if 00048 //## the data is stored in multiple files. 00049 virtual const char* GetFilePrefix() const = 0; 00050 00051 //##Documentation 00052 //## @brief Specify file prefix for the file(s) to load. 00053 //## 00054 //## You should specify either a FileName or FilePrefix. Use FilePrefix if 00055 //## the data is stored in multiple files. 00056 virtual void SetFilePrefix(const char* aFilePrefix) = 0; 00057 00058 //##Documentation 00059 //## @brief Get the specified file pattern for the file(s) to load. The 00060 //## sprintf format used to build filename from FilePrefix and number. 00061 //## 00062 //## You should specify either a FileName or FilePrefix. Use FilePrefix if 00063 //## the data is stored in multiple files. 00064 virtual const char* GetFilePattern() const = 0; 00065 00066 //##Documentation 00067 //## @brief Specified file pattern for the file(s) to load. The sprintf 00068 //## format used to build filename from FilePrefix and number. 00069 //## 00070 //## You should specify either a FileName or FilePrefix. Use FilePrefix if 00071 //## the data is stored in multiple files. 00072 virtual void SetFilePattern(const char* aFilePattern) = 0; 00073 00074 protected: 00075 FileReader(); 00076 00077 virtual ~FileReader(); 00078 public: 00079 00080 protected: 00081 }; 00082 } // namespace mitk 00083 #endif /* FILEREADER_H_HEADER_INCLUDED_C1E7E521 */ 00084 00085