aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/include/IReadFile.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/include/IReadFile.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/include/IReadFile.h')
-rw-r--r--libraries/irrlicht-1.8/include/IReadFile.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/libraries/irrlicht-1.8/include/IReadFile.h b/libraries/irrlicht-1.8/include/IReadFile.h
index e925690..eb4f0bd 100644
--- a/libraries/irrlicht-1.8/include/IReadFile.h
+++ b/libraries/irrlicht-1.8/include/IReadFile.h
@@ -1,58 +1,58 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt 1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine". 2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h 3// For conditions of distribution and use, see copyright notice in irrlicht.h
4 4
5#ifndef __I_READ_FILE_H_INCLUDED__ 5#ifndef __I_READ_FILE_H_INCLUDED__
6#define __I_READ_FILE_H_INCLUDED__ 6#define __I_READ_FILE_H_INCLUDED__
7 7
8#include "IReferenceCounted.h" 8#include "IReferenceCounted.h"
9#include "coreutil.h" 9#include "coreutil.h"
10 10
11namespace irr 11namespace irr
12{ 12{
13namespace io 13namespace io
14{ 14{
15 15
16 //! Interface providing read acess to a file. 16 //! Interface providing read acess to a file.
17 class IReadFile : public virtual IReferenceCounted 17 class IReadFile : public virtual IReferenceCounted
18 { 18 {
19 public: 19 public:
20 //! Reads an amount of bytes from the file. 20 //! Reads an amount of bytes from the file.
21 /** \param buffer Pointer to buffer where read bytes are written to. 21 /** \param buffer Pointer to buffer where read bytes are written to.
22 \param sizeToRead Amount of bytes to read from the file. 22 \param sizeToRead Amount of bytes to read from the file.
23 \return How many bytes were read. */ 23 \return How many bytes were read. */
24 virtual s32 read(void* buffer, u32 sizeToRead) = 0; 24 virtual s32 read(void* buffer, u32 sizeToRead) = 0;
25 25
26 //! Changes position in file 26 //! Changes position in file
27 /** \param finalPos Destination position in the file. 27 /** \param finalPos Destination position in the file.
28 \param relativeMovement If set to true, the position in the file is 28 \param relativeMovement If set to true, the position in the file is
29 changed relative to current position. Otherwise the position is changed 29 changed relative to current position. Otherwise the position is changed
30 from beginning of file. 30 from beginning of file.
31 \return True if successful, otherwise false. */ 31 \return True if successful, otherwise false. */
32 virtual bool seek(long finalPos, bool relativeMovement = false) = 0; 32 virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
33 33
34 //! Get size of file. 34 //! Get size of file.
35 /** \return Size of the file in bytes. */ 35 /** \return Size of the file in bytes. */
36 virtual long getSize() const = 0; 36 virtual long getSize() const = 0;
37 37
38 //! Get the current position in the file. 38 //! Get the current position in the file.
39 /** \return Current position in the file in bytes. */ 39 /** \return Current position in the file in bytes. */
40 virtual long getPos() const = 0; 40 virtual long getPos() const = 0;
41 41
42 //! Get name of file. 42 //! Get name of file.
43 /** \return File name as zero terminated character string. */ 43 /** \return File name as zero terminated character string. */
44 virtual const io::path& getFileName() const = 0; 44 virtual const io::path& getFileName() const = 0;
45 }; 45 };
46 46
47 //! Internal function, please do not use. 47 //! Internal function, please do not use.
48 IReadFile* createReadFile(const io::path& fileName); 48 IReadFile* createReadFile(const io::path& fileName);
49 //! Internal function, please do not use. 49 //! Internal function, please do not use.
50 IReadFile* createLimitReadFile(const io::path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize); 50 IReadFile* createLimitReadFile(const io::path& fileName, IReadFile* alreadyOpenedFile, long pos, long areaSize);
51 //! Internal function, please do not use. 51 //! Internal function, please do not use.
52 IReadFile* createMemoryReadFile(void* memory, long size, const io::path& fileName, bool deleteMemoryWhenDropped); 52 IReadFile* createMemoryReadFile(void* memory, long size, const io::path& fileName, bool deleteMemoryWhenDropped);
53 53
54} // end namespace io 54} // end namespace io
55} // end namespace irr 55} // end namespace irr
56 56
57#endif 57#endif
58 58