5#ifndef NIRT_I_WRITE_FILE_HPP_INCLUDED
6#define NIRT_I_WRITE_FILE_HPP_INCLUDED
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/path.hpp>
24 virtual size_t write(
const void* buffer,
size_t sizeToWrite) = 0;
32 virtual bool seek(
long finalPos,
bool relativeMovement =
false) = 0;
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing write access to a file.
Definition IWriteFile.hpp:18
virtual long getPos() const =0
Get the current position in the file.
virtual const path & getFileName() const =0
Get name of file.
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.
virtual bool flush()=0
Flush the content of the buffer in the file.
virtual size_t write(const void *buffer, size_t sizeToWrite)=0
Writes an amount of bytes to the file.
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11