From e0535ca6dfee3e5680d591e5764529596d4d412d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 7 Feb 2013 09:15:55 +0000 Subject: Added a cGZipFile class for reading GZipped files. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1196 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/OSSupport/File.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'source/OSSupport/File.h') 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 - - - - -- cgit v1.2.3