5#ifndef NIRT_I_READ_FILE_HPP_INCLUDED
6#define NIRT_I_READ_FILE_HPP_INCLUDED
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/coreutil.hpp>
10#include <nirtcpp/core/engine/EReadFileType.hpp>
25 virtual size_t read(
void* buffer,
size_t sizeToRead) = 0;
33 virtual bool seek(
long finalPos,
bool relativeMovement =
false) = 0;
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing read access to a file.
Definition IReadFile.hpp:19
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.
virtual long getPos() const =0
Get the current position in the file.
virtual const io::path & getFileName() const =0
Get name of file.
virtual size_t read(void *buffer, size_t sizeToRead)=0
Reads an amount of bytes from the file.
virtual EREAD_FILE_TYPE getType() const
Get the type of the class implementing this interface.
Definition IReadFile.hpp:48
virtual long getSize() const =0
Get size of file.
EREAD_FILE_TYPE
An enumeration for different class types implementing IReadFile.
Definition EReadFileType.hpp:17
@ EFIT_UNKNOWN
Unknown type.
Definition EReadFileType.hpp:28
IReadFile * createLimitReadFile(const io::path &fileName, IReadFile *alreadyOpenedFile, long pos, long areaSize)
Internal function, please do not use.
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11