summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/File.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-07 10:15:55 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-07 10:15:55 +0100
commite0535ca6dfee3e5680d591e5764529596d4d412d (patch)
tree1cbbc76193f67b9f78c52149afeddaccaf791256 /source/OSSupport/File.h
parentcBlockArea can now be loaded from a .schematic file. (diff)
downloadcuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.tar
cuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.tar.gz
cuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.tar.bz2
cuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.tar.lz
cuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.tar.xz
cuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.tar.zst
cuberite-e0535ca6dfee3e5680d591e5764529596d4d412d.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/File.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/source/OSSupport/File.h b/source/OSSupport/File.h
index 5e7cd4431..fe5d38bd0 100644
--- a/source/OSSupport/File.h
+++ b/source/OSSupport/File.h
@@ -25,8 +25,6 @@ Usage:
#pragma once
-#ifndef CFILE_H_INCLUDED
-#define CFILE_H_INCLUDED
@@ -53,7 +51,7 @@ public:
#endif
/// The mode in which to open the file
- enum EMode
+ enum eMode
{
fmRead, // Read-only. If the file doesn't exist, object will not be valid
fmWrite, // Write-only. If the file already exists, it will be overwritten
@@ -64,12 +62,12 @@ public:
cFile(void);
/// Constructs and opens / creates the file specified, use IsOpen() to check for success
- cFile(const AString & iFileName, EMode iMode);
+ cFile(const AString & iFileName, eMode iMode);
/// Auto-closes the file, if open
~cFile();
- bool Open(const AString & iFileName, EMode iMode);
+ bool Open(const AString & iFileName, eMode iMode);
void Close(void);
bool IsOpen(void) const;
bool IsEOF(void) const;
@@ -108,9 +106,3 @@ private:
-
-#endif // CFILE_H_INCLUDED
-
-
-
-