5#ifndef JPP_I_READ_FILE_HPP_INCLUDED
6#define JPP_I_READ_FILE_HPP_INCLUDED
8#include <jimcpp/core/engine/IReferenceCounted.hpp>
9#include <jimcpp/core/engine/coreutil.hpp>
10#include <jimcpp/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 Jimcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing read access to a file.
Definition IReadFile.hpp:19
virtual long getSize() const =0
Get size of file.
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.
virtual EREAD_FILE_TYPE getType() const
Get the type of the class implementing this interface.
Definition IReadFile.hpp:48
virtual size_t read(void *buffer, size_t sizeToRead)=0
Reads an amount of bytes from the file.
virtual const io::path & getFileName() const =0
Get name of file.
virtual long getPos() const =0
Get the current position in the 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 Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11