aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CLimitReadFile.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/source/Irrlicht/CLimitReadFile.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/source/Irrlicht/CLimitReadFile.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CLimitReadFile.h124
1 files changed, 62 insertions, 62 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CLimitReadFile.h b/libraries/irrlicht-1.8/source/Irrlicht/CLimitReadFile.h
index 00348b1..0cdcf00 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CLimitReadFile.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CLimitReadFile.h
@@ -1,62 +1,62 @@
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 __C_LIMIT_READ_FILE_H_INCLUDED__ 5#ifndef __C_LIMIT_READ_FILE_H_INCLUDED__
6#define __C_LIMIT_READ_FILE_H_INCLUDED__ 6#define __C_LIMIT_READ_FILE_H_INCLUDED__
7 7
8#include "IReadFile.h" 8#include "IReadFile.h"
9#include "irrString.h" 9#include "irrString.h"
10 10
11namespace irr 11namespace irr
12{ 12{
13 class CUnicodeConverter; 13 class CUnicodeConverter;
14 14
15namespace io 15namespace io
16{ 16{
17 17
18 /*! this is a read file, which is limited to some boundaries, 18 /*! this is a read file, which is limited to some boundaries,
19 so that it may only start from a certain file position 19 so that it may only start from a certain file position
20 and may only read until a certain file position. 20 and may only read until a certain file position.
21 This can be useful, for example for reading uncompressed files 21 This can be useful, for example for reading uncompressed files
22 in an archive (zip, tar). 22 in an archive (zip, tar).
23 !*/ 23 !*/
24 class CLimitReadFile : public IReadFile 24 class CLimitReadFile : public IReadFile
25 { 25 {
26 public: 26 public:
27 27
28 CLimitReadFile(IReadFile* alreadyOpenedFile, long pos, long areaSize, const io::path& name); 28 CLimitReadFile(IReadFile* alreadyOpenedFile, long pos, long areaSize, const io::path& name);
29 29
30 virtual ~CLimitReadFile(); 30 virtual ~CLimitReadFile();
31 31
32 //! returns how much was read 32 //! returns how much was read
33 virtual s32 read(void* buffer, u32 sizeToRead); 33 virtual s32 read(void* buffer, u32 sizeToRead);
34 34
35 //! changes position in file, returns true if successful 35 //! changes position in file, returns true if successful
36 //! if relativeMovement==true, the pos is changed relative to current pos, 36 //! if relativeMovement==true, the pos is changed relative to current pos,
37 //! otherwise from begin of file 37 //! otherwise from begin of file
38 virtual bool seek(long finalPos, bool relativeMovement = false); 38 virtual bool seek(long finalPos, bool relativeMovement = false);
39 39
40 //! returns size of file 40 //! returns size of file
41 virtual long getSize() const; 41 virtual long getSize() const;
42 42
43 //! returns where in the file we are. 43 //! returns where in the file we are.
44 virtual long getPos() const; 44 virtual long getPos() const;
45 45
46 //! returns name of file 46 //! returns name of file
47 virtual const io::path& getFileName() const; 47 virtual const io::path& getFileName() const;
48 48
49 private: 49 private:
50 50
51 io::path Filename; 51 io::path Filename;
52 long AreaStart; 52 long AreaStart;
53 long AreaEnd; 53 long AreaEnd;
54 long Pos; 54 long Pos;
55 IReadFile* File; 55 IReadFile* File;
56 }; 56 };
57 57
58} // end namespace io 58} // end namespace io
59} // end namespace irr 59} // end namespace irr
60 60
61#endif 61#endif
62 62