PhysicsFS 2.0.3 imported.
This commit is contained in:
parent
bcc0937726
commit
993311d151
459 changed files with 87785 additions and 0 deletions
35
lib/physfs-2.0.3/lzma/CPP/Common/StdOutStream.h
Normal file
35
lib/physfs-2.0.3/lzma/CPP/Common/StdOutStream.h
Normal file
|
@ -0,0 +1,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), _stream(0) {};
|
||||
CStdOutStream (FILE *stream): _streamIsOpen(false), _stream(stream) {};
|
||||
~CStdOutStream ();
|
||||
operator FILE *() { return _stream; }
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue