diff options
Diffstat (limited to '3rdparty/lzma/CPP/Common/StdInStream.h')
-rw-r--r-- | 3rdparty/lzma/CPP/Common/StdInStream.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/3rdparty/lzma/CPP/Common/StdInStream.h b/3rdparty/lzma/CPP/Common/StdInStream.h index 0d182cc3c8b..6d9ed67040d 100644 --- a/3rdparty/lzma/CPP/Common/StdInStream.h +++ b/3rdparty/lzma/CPP/Common/StdInStream.h @@ -1,29 +1,30 @@ // Common/StdInStream.h -#ifndef __COMMON_STDINSTREAM_H -#define __COMMON_STDINSTREAM_H +#ifndef __COMMON_STD_IN_STREAM_H +#define __COMMON_STD_IN_STREAM_H #include <stdio.h> #include "MyString.h" -#include "Types.h" +#include "MyTypes.h" class CStdInStream { - bool _streamIsOpen; FILE *_stream; + bool _streamIsOpen; public: - CStdInStream(): _streamIsOpen(false) {}; - CStdInStream(FILE *stream): _streamIsOpen(false), _stream(stream) {}; - ~CStdInStream(); - bool Open(LPCTSTR fileName); - bool Close(); + CStdInStream(): _stream(0), _streamIsOpen(false) {}; + CStdInStream(FILE *stream): _stream(stream), _streamIsOpen(false) {}; + ~CStdInStream() { Close(); } + + bool Open(LPCTSTR fileName) throw(); + bool Close() throw(); AString ScanStringUntilNewLine(bool allowEOF = false); void ReadToString(AString &resultString); UString ScanUStringUntilNewLine(); - bool Eof(); + bool Eof() throw(); int GetChar(); }; |