mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 20:11:35 -06:00
3.13
This commit is contained in:
33
Common/StdInStream.h
Executable file
33
Common/StdInStream.h
Executable file
@@ -0,0 +1,33 @@
|
||||
// Common/StdInStream.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __COMMON_STDINSTREAM_H
|
||||
#define __COMMON_STDINSTREAM_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "String.h"
|
||||
#include "Types.h"
|
||||
|
||||
class CStdInStream
|
||||
{
|
||||
bool _streamIsOpen;
|
||||
FILE *_stream;
|
||||
public:
|
||||
CStdInStream(): _streamIsOpen(false) {};
|
||||
CStdInStream(FILE *stream): _streamIsOpen(false), _stream(stream) {};
|
||||
~CStdInStream();
|
||||
bool Open(LPCTSTR fileName);
|
||||
bool Close();
|
||||
|
||||
AString ScanStringUntilNewLine();
|
||||
void ReadToString(AString &resultString);
|
||||
|
||||
bool Eof();
|
||||
int GetChar();
|
||||
};
|
||||
|
||||
extern CStdInStream g_StdIn;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user