arsa  2.7
IWriteFile.h
Go to the documentation of this file.
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 irrlicht.h
4 
5 #ifndef __I_WRITE_FILE_H_INCLUDED__
6 #define __I_WRITE_FILE_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "path.h"
10 
11 namespace irr
12 {
13 namespace 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 irr
49 
50 #endif
51 
virtual long getPos() const =0
Get the current position in the file.
virtual const path & getFileName() const =0
Get name of file.
virtual size_t write(const void *buffer, size_t sizeToWrite)=0
Writes an amount of bytes to the file.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
Interface providing write access to a file.
Definition: IWriteFile.h:17
GLuint buffer
Base class of most objects of the Irrlicht Engine.
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.