aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CWriteFile.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/CWriteFile.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 '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CWriteFile.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CWriteFile.h b/libraries/irrlicht-1.8/source/Irrlicht/CWriteFile.h
index b3203ce..6cdd1ff 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CWriteFile.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CWriteFile.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 __C_WRITE_FILE_H_INCLUDED__ 5#ifndef __C_WRITE_FILE_H_INCLUDED__
6#define __C_WRITE_FILE_H_INCLUDED__ 6#define __C_WRITE_FILE_H_INCLUDED__
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include "IWriteFile.h" 9#include "IWriteFile.h"
10#include "irrString.h" 10#include "irrString.h"
11 11
12namespace irr 12namespace irr
13{ 13{
14 14
15namespace io 15namespace io
16{ 16{
17 17
18 /*! 18 /*!
19 Class for writing a real file to disk. 19 Class for writing a real file to disk.
20 */ 20 */
21 class CWriteFile : public IWriteFile 21 class CWriteFile : public IWriteFile
22 { 22 {
23 public: 23 public:
24 24
25 CWriteFile(const io::path& fileName, bool append); 25 CWriteFile(const io::path& fileName, bool append);
26 26
27 virtual ~CWriteFile(); 27 virtual ~CWriteFile();
28 28
29 //! Reads an amount of bytes from the file. 29 //! Reads an amount of bytes from the file.
30 virtual s32 write(const void* buffer, u32 sizeToWrite); 30 virtual s32 write(const void* buffer, u32 sizeToWrite);
31 31
32 //! Changes position in file, returns true if successful. 32 //! Changes position in file, returns true if successful.
33 virtual bool seek(long finalPos, bool relativeMovement = false); 33 virtual bool seek(long finalPos, bool relativeMovement = false);
34 34
35 //! Returns the current position in the file. 35 //! Returns the current position in the file.
36 virtual long getPos() const; 36 virtual long getPos() const;
37 37
38 //! Returns name of file. 38 //! Returns name of file.
39 virtual const io::path& getFileName() const; 39 virtual const io::path& getFileName() const;
40 40
41 //! returns if file is open 41 //! returns if file is open
42 bool isOpen() const; 42 bool isOpen() const;
43 43
44 private: 44 private:
45 45
46 //! opens the file 46 //! opens the file
47 void openFile(bool append); 47 void openFile(bool append);
48 48
49 io::path Filename; 49 io::path Filename;
50 FILE* File; 50 FILE* File;
51 long FileSize; 51 long FileSize;
52 }; 52 };
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