Jimcpp 2.1.0
Jimcpp 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 jimcpp/jimcpp.hpp
4
5#ifndef JPP_I_WRITE_FILE_HPP_INCLUDED
6#define JPP_I_WRITE_FILE_HPP_INCLUDED
7
8#include <jimcpp/core/engine/IReferenceCounted.hpp>
9#include <jimcpp/core/engine/path.hpp>
10
11namespace jpp
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 jpp
49
50#endif
Base class of most objects of the Jimcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing write access to a file.
Definition IWriteFile.hpp:18
virtual size_t write(const void *buffer, size_t sizeToWrite)=0
Writes an amount of bytes to the file.
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.
virtual const path & getFileName() const =0
Get name of file.
virtual long getPos() const =0
Get the current position in the file.
virtual bool flush()=0
Flush the content of the buffer in the file.
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11

Jimcpp    @cppfx.xyz

K