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