#include <IReadFile.h>
Inheritance diagram for amn::IReadFile:
Public Member Functions | |
IReadFile (IFileManager *m, const char *filename) | |
virtual | ~IReadFile () |
virtual bool | isOpen ()=0 |
Returns whether the file was successfully opened or not. | |
virtual void | close ()=0 |
Closes the file. | |
virtual int | readBytes (void *into, int length)=0 |
virtual int | getFilePosition ()=0 |
Returns the file position. | |
virtual void | setFilePosition (int position)=0 |
Sets the file position. | |
virtual int | getFileSize ()=0 |
Returns the file size. | |
virtual const char * | getFileName ()=0 |
Returns the file name. | |
Protected Attributes | |
IFileManager * | fileManager |
std::ifstream | file |
|
|
|
|
|
Closes the file.
|
|
Returns the file name.
|
|
Returns the file position.
|
|
Returns the file size.
|
|
Returns whether the file was successfully opened or not.
|
|
Read bytes from file.
|
|
Sets the file position.
|
|
|
|
|