Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 // Common/StdInStream.h
3 #ifndef __COMMON_STDINSTREAM_H
4 #define __COMMON_STDINSTREAM_H
6 #include <stdio.h>
8 #include "Common/String.h"
9 #include "Types.h"
11 class CStdInStream
12 {
13 bool _streamIsOpen;
14 FILE *_stream;
15 public:
16 CStdInStream(): _streamIsOpen(false) {};
17 CStdInStream(FILE *stream): _streamIsOpen(false), _stream(stream) {};
18 ~CStdInStream();
19 bool Open(LPCTSTR fileName);
20 bool Close();
22 AString ScanStringUntilNewLine();
23 void ReadToString(AString &resultString);
25 bool Eof();
26 int GetChar();
27 };
29 extern CStdInStream g_StdIn;
31 #endif