13 #ifndef mitkFileReader_h
14 #define mitkFileReader_h
34 virtual const char *GetFileName()
const = 0;
Interface class of readers that read from files.
mitkClassMacroNoParent(FileReader) virtual const char *GetFileName() const =0
Get the specified the file to load.
virtual bool CanReadFromMemory()
Specifies, whether the file reader also can read a file from a memory buffer.
virtual void SetMemoryBuffer(const char *dataArray, unsigned int size)
To be used along with a call of SetReadFromMemory(true). This sets the memory buffer and the size fro...
virtual bool GetReadFromMemory()
virtual void SetFilePattern(const char *aFilePattern)=0
Specified file pattern for the file(s) to load. The sprintf format used to build filename from FilePr...
virtual void SetFilePrefix(const char *aFilePrefix)=0
Specify file prefix for the file(s) to load.
const char * m_MemoryBuffer
virtual void SetReadFromMemory(bool read)
Set/Get functions to advise the file reader to use a memory array for reading a file.
unsigned int m_MemorySize
virtual void SetFileName(const char *aFileName)=0
Specify the file to load.
virtual const char * GetFilePrefix() const =0
Get the specified file prefix for the file(s) to load.
virtual const char * GetFilePattern() const =0
Get the specified file pattern for the file(s) to load. The sprintf format used to build filename fro...
Find image slices visible on a given plane.