Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IWriteFile.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_WRITE_FILE_HPP_INCLUDED
6#define NIRT_I_WRITE_FILE_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/path.hpp>
10
11namespace nirt
12{
13namespace io
14{
15
17 class IWriteFile : public virtual IReferenceCounted
18 {
19 public:
21
24 virtual size_t write(const void* buffer, size_t sizeToWrite) = 0;
25
27
32 virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
33
35
36 virtual long getPos() const = 0;
37
39
40 virtual const path& getFileName() const = 0;
41
43
44 virtual bool flush() = 0;
45 };
46
47} // end namespace io
48} // end namespace nirt
49
50#endif
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

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print