Interface class of readers that read from files.
More...
#include <mitkFileReader.h>
|
virtual std::vector< std::string > | GetClassHierarchy () const |
|
| itkTypeMacroNoParent (FileReader) virtual const char *GetFileName() const =0 |
| Get the specified the file to load. More...
|
|
virtual void | SetFileName (const char *aFileName)=0 |
| Specify the file to load. More...
|
|
virtual const char * | GetFilePrefix () const =0 |
| Get the specified file prefix for the file(s) to load. More...
|
|
virtual void | SetFilePrefix (const char *aFilePrefix)=0 |
| Specify file prefix for the file(s) to load. More...
|
|
virtual const char * | GetFilePattern () const =0 |
| Get the specified file pattern for the file(s) to load. The sprintf format used to build filename from FilePrefix and number. More...
|
|
virtual void | SetFilePattern (const char *aFilePattern)=0 |
| Specified file pattern for the file(s) to load. The sprintf format used to build filename from FilePrefix and number. More...
|
|
virtual bool | CanReadFromMemory () |
| Specifies, whether the file reader also can read a file from a memory buffer. More...
|
|
virtual void | SetReadFromMemory (bool read) |
| Set/Get functions to advise the file reader to use a memory array for reading a file. More...
|
|
virtual bool | GetReadFromMemory () |
|
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 from which the reader will read. More...
|
|
Interface class of readers that read from files.
- Deprecated:
- (as of 2014_10) Use mitk::IFileReader instead.
Definition at line 29 of file mitkFileReader.h.
mitk::FileReader::FileReader |
( |
| ) |
|
|
protected |
mitk::FileReader::~FileReader |
( |
| ) |
|
|
protectedvirtual |
bool mitk::FileReader::CanReadFromMemory |
( |
| ) |
|
|
virtual |
Specifies, whether the file reader also can read a file from a memory buffer.
Definition at line 26 of file mitkFileReader.cpp.
virtual std::vector<std::string> mitk::FileReader::GetClassHierarchy |
( |
| ) |
const |
|
inlinevirtual |
virtual const char* mitk::FileReader::GetFilePattern |
( |
| ) |
const |
|
pure virtual |
virtual const char* mitk::FileReader::GetFilePrefix |
( |
| ) |
const |
|
pure virtual |
bool mitk::FileReader::GetReadFromMemory |
( |
| ) |
|
|
virtual |
static const char* mitk::FileReader::GetStaticNameOfClass |
( |
| ) |
|
|
inlinestatic |
mitk::FileReader::itkTypeMacroNoParent |
( |
FileReader |
| ) |
const |
|
pure virtual |
Get the specified the file to load.
Either the FileName or FilePrefix plus FilePattern are used to read.
virtual void mitk::FileReader::SetFileName |
( |
const char * |
aFileName | ) |
|
|
pure virtual |
virtual void mitk::FileReader::SetFilePattern |
( |
const char * |
aFilePattern | ) |
|
|
pure virtual |
virtual void mitk::FileReader::SetFilePrefix |
( |
const char * |
aFilePrefix | ) |
|
|
pure virtual |
void mitk::FileReader::SetMemoryBuffer |
( |
const char * |
dataArray, |
|
|
unsigned int |
size |
|
) |
| |
|
virtual |
To be used along with a call of SetReadFromMemory(true). This sets the memory buffer and the size from which the reader will read.
Definition at line 39 of file mitkFileReader.cpp.
void mitk::FileReader::SetReadFromMemory |
( |
bool |
read | ) |
|
|
virtual |
Set/Get functions to advise the file reader to use a memory array for reading a file.
Definition at line 31 of file mitkFileReader.cpp.
bool mitk::FileReader::m_CanReadFromMemory |
|
protected |
const char* mitk::FileReader::m_MemoryBuffer |
|
protected |
unsigned int mitk::FileReader::m_MemorySize |
|
protected |
bool mitk::FileReader::m_ReadFromMemory |
|
protected |
The documentation for this class was generated from the following files: