My Project
|
Interface for read access to a file. More...
#include <IFile.h>
Public Member Functions | |
virtual DWORD | read (void *buffer, DWORD sizeToRead)=0 |
Reads an amount of bytes from the file. More... | |
virtual bool | seek (DWORD finalPos, bool relativeMovement=false)=0 |
Changes position in file, returns true if successful. More... | |
virtual DWORD | getSize ()=0 |
Returns size of file. More... | |
virtual bool | isOpen ()=0 |
returns if file is open | |
virtual DWORD | getPos ()=0 |
Returns the current position in the file. More... | |
virtual const char * | getFileName ()=0 |
Returns name of file. More... | |
virtual void | Release () |
delete this | |
Interface for read access to a file.
|
pure virtual |
Returns name of file.
Implemented in ParaEngine::CMemReadFile, and ParaEngine::CReadFile.
|
pure virtual |
Returns the current position in the file.
Implemented in ParaEngine::CMemReadFile, and ParaEngine::CReadFile.
|
pure virtual |
Returns size of file.
Implemented in ParaEngine::CMemReadFile, and ParaEngine::CReadFile.
|
pure virtual |
Reads an amount of bytes from the file.
buffer | Pointer to buffer where to read bytes will be written to. |
sizeToRead | Amount of bytes to read from the file. |
Implemented in ParaEngine::CMemReadFile, and ParaEngine::CReadFile.
|
pure virtual |
Changes position in file, returns true if successful.
finalPos | Destination position in the file. |
relativeMovement | If set to true, the position in the file is changed relative to current position. Otherwise the position is changed from begin of file. |
Implemented in ParaEngine::CMemReadFile, and ParaEngine::CReadFile.