1 #ifndef UNITTEST_MEMORYOUTSTREAM_H
2 #define UNITTEST_MEMORYOUTSTREAM_H
5 #include "HelperMacros.h"
7 #ifdef UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM
14 class UNITTEST_LINKAGE MemoryOutStream :
public std::ostringstream
20 char const* GetText()
const;
23 MemoryOutStream(MemoryOutStream
const&);
24 void operator =(MemoryOutStream
const&);
26 mutable std::string m_text;
29 #ifdef UNITTEST_COMPILER_IS_MSVC6
30 std::ostream&
operator<<(std::ostream& stream, __int64
const n);
31 std::ostream&
operator<<(std::ostream& stream,
unsigned __int64
const n);
40 #ifdef UNITTEST_COMPILER_IS_MSVC6
47 class UNITTEST_LINKAGE MemoryOutStream
50 explicit MemoryOutStream(
int const size = 256);
54 char const* GetText()
const;
60 #ifdef UNITTEST_COMPILER_IS_MSVC6
72 enum { GROW_CHUNK_SIZE = 32 };
73 int GetCapacity()
const;
76 void operator= (MemoryOutStream
const&);
77 void GrowBuffer(
int capacity);
std::ostream & operator<<(std::ostream &os, const _expr< E > &b)
Stream operator for expressions.
Definition: gsExpressions.h:382