Added a cGZipFile class for reading GZipped files.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1196 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
+3
-11
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user