| 
    MeVisLab Toolbox Reference
    
   | 
 
A base class for abstract read/write access of the MLImageFileFormat. More...
#include <mlImageFormatFileAccess.h>
  
Public Member Functions | |
| MLImageFormatAbstractFileHandle () | |
| Standard constructor.   | |
| virtual | ~MLImageFormatAbstractFileHandle () | 
| Destructor to clean up. Reimplement to close the file.   | |
| MLuint8 * | read (MLuint startPosition, MLuint numBytes) | 
| Convenience method that reads the given block and returns an array that needs to be freed by free().   | |
| virtual bool | read (MLuint8 *data, MLuint startPosition, MLuint numBytes)=0 | 
Reads the given block and returns true if numBytes have been read.   | |
| virtual MLErrorCode | write (MLuint startPos, const MLuint8 *data, size_t length)=0 | 
| Writes the given block.   | |
| virtual MLint64 | getFileSize ()=0 | 
| Returns the current complete file size.   | |
| virtual MLErrorCode | close ()=0 | 
| Closes the file.   | |
A base class for abstract read/write access of the MLImageFileFormat.
It can be derived to create a custom file access, e.g., to read data from a database or from the network.
Definition at line 26 of file mlImageFormatFileAccess.h.
      
  | 
  inline | 
Standard constructor.
Definition at line 30 of file mlImageFormatFileAccess.h.
      
  | 
  inlinevirtual | 
Destructor to clean up. Reimplement to close the file.
Definition at line 33 of file mlImageFormatFileAccess.h.
      
  | 
  pure virtual | 
Closes the file.
Implemented in ml::MLImageFormatDiskFileHandle.
Returns the current complete file size.
Implemented in ml::MLImageFormatDiskFileHandle.
Convenience method that reads the given block and returns an array that needs to be freed by free().
Returns NULL if failed.
      
  | 
  pure virtual | 
Reads the given block and returns true if numBytes have been read. 
The data pointer needs to be large enough to hold numBytes bytes.
Implemented in ml::MLImageFormatDiskFileHandle.
      
  | 
  pure virtual | 
Writes the given block.
Implemented in ml::MLImageFormatDiskFileHandle.