aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/include/IWriteFile.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/include/IWriteFile.h
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/include/IWriteFile.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/include/IWriteFile.h b/libraries/irrlicht-1.8/include/IWriteFile.h
new file mode 100644
index 0000000..5944318
--- /dev/null
+++ b/libraries/irrlicht-1.8/include/IWriteFile.h
@@ -0,0 +1,50 @@
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
11namespace irr
12{
13namespace io
14{
15
16 //! Interface providing write access to a file.
17 class IWriteFile : public virtual IReferenceCounted
18 {
19 public:
20 //! Writes an amount of bytes to the file.
21 /** \param buffer Pointer to buffer of bytes to write.
22 \param sizeToWrite Amount of bytes to write to the file.
23 \return How much bytes were written. */
24 virtual s32 write(const void* buffer, u32 sizeToWrite) = 0;
25
26 //! Changes position in file
27 /** \param finalPos Destination position in the file.
28 \param relativeMovement If set to true, the position in the file is
29 changed relative to current position. Otherwise the position is changed
30 from begin of file.
31 \return True if successful, otherwise false. */
32 virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
33
34 //! Get the current position in the file.
35 /** \return Current position in the file in bytes. */
36 virtual long getPos() const = 0;
37
38 //! Get name of file.
39 /** \return File name as zero terminated character string. */
40 virtual const path& getFileName() const = 0;
41 };
42
43 //! Internal function, please do not use.
44 IWriteFile* createWriteFile(const io::path& fileName, bool append);
45
46} // end namespace io
47} // end namespace irr
48
49#endif
50