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/StdOutStream.h
3 #ifndef __COMMON_STDOUTSTREAM_H
4 #define __COMMON_STDOUTSTREAM_H
6 #include <stdio.h>
8 #include "Types.h"
10 class CStdOutStream
11 {
12 bool _streamIsOpen;
13 FILE *_stream;
14 public:
15 CStdOutStream (): _streamIsOpen(false) {};
16 CStdOutStream (FILE *stream): _streamIsOpen(false), _stream(stream) {};
17 ~CStdOutStream ();
18 bool Open(const char *fileName);
19 bool Close();
20 bool Flush();
22 CStdOutStream & operator<<(CStdOutStream & (* aFunction)(CStdOutStream &));
23 CStdOutStream & operator<<(const char *string);
24 CStdOutStream & operator<<(const wchar_t *string);
25 CStdOutStream & operator<<(char c);
26 CStdOutStream & operator<<(int number);
27 CStdOutStream & operator<<(UInt64 number);
28 };
30 CStdOutStream & endl(CStdOutStream & outStream);
32 extern CStdOutStream g_StdOut;
33 extern CStdOutStream g_StdErr;
35 #endif