Irrlicht 3D Engine
irr::io::IReadFile Class Reference

Interface providing read acess to a file. More...

#include <IReadFile.h>

+ Inheritance diagram for irr::io::IReadFile:

List of all members.

Public Member Functions

Detailed Description

Interface providing read acess to a file.

Definition at line 17 of file IReadFile.h.

Member Function Documentation

virtual const io::path& irr::io::IReadFile::getFileName ( ) const [pure virtual]

Get name of file.

File name as zero terminated character string.
virtual long irr::io::IReadFile::getPos ( ) const [pure virtual]

Get the current position in the file.

Current position in the file in bytes.
virtual long irr::io::IReadFile::getSize ( ) const [pure virtual]

Get size of file.

Size of the file in bytes.
virtual s32 irr::io::IReadFile::read ( void *  buffer,
u32  sizeToRead 
) [pure virtual]

Reads an amount of bytes from the file.

bufferPointer to buffer where read bytes are written to.
sizeToReadAmount of bytes to read from the file.
How many bytes were read.
virtual bool irr::io::IReadFile::seek ( long  finalPos,
bool  relativeMovement = false 
) [pure virtual]

Changes position in file.

finalPosDestination position in the file.
relativeMovementIf set to true, the position in the file is changed relative to current position. Otherwise the position is changed from beginning of file.
True if successful, otherwise false.

The documentation for this class was generated from the following file: