Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials |
Interface providing read acess to a file. More...
#include <IReadFile.h>
Public Member Functions | |
virtual const io::path & | getFileName () const =0 |
Get name of file. | |
virtual long | getPos () const =0 |
Get the current position in the file. | |
virtual long | getSize () const =0 |
Get size of file. | |
virtual s32 | read (void *buffer, u32 sizeToRead)=0 |
Reads an amount of bytes from the file. | |
virtual bool | seek (long finalPos, bool relativeMovement=false)=0 |
Changes position in file. |
Interface providing read acess to a file.
Definition at line 17 of file IReadFile.h.
virtual const io::path& irr::io::IReadFile::getFileName | ( | ) | const [pure virtual] |
Get name of file.
virtual long irr::io::IReadFile::getPos | ( | ) | const [pure virtual] |
Get the current position in the file.
virtual long irr::io::IReadFile::getSize | ( | ) | const [pure virtual] |
Get size of file.
Reads an amount of bytes from the file.
buffer | Pointer to buffer where read bytes are written to. | |
sizeToRead | Amount of bytes to read from the file. |
virtual bool irr::io::IReadFile::seek | ( | long | finalPos, | |
bool | relativeMovement = false | |||
) | [pure virtual] |
Changes position in file.
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 beginning of file. |
The Irrlicht
Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated
on Sun Oct 24 12:42:06 2010 by Doxygen
(1.6.2) |