1#ifndef UNITTEST_MEMORYOUTSTREAM_H
2#define UNITTEST_MEMORYOUTSTREAM_H
5#include "HelperMacros.h"
7#ifdef UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM
14class 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
30std::ostream&
operator<<(std::ostream& stream, __int64
const n);
31std::ostream&
operator<<(std::ostream& stream,
unsigned __int64
const n);
40#ifdef UNITTEST_COMPILER_IS_MSVC6
47class UNITTEST_LINKAGE MemoryOutStream
50 explicit MemoryOutStream(
int const size = 256);
54 char const* GetText()
const;
56 MemoryOutStream& operator <<(
char const* txt);
57 MemoryOutStream& operator <<(
int n);
58 MemoryOutStream& operator <<(
long n);
59 MemoryOutStream& operator <<(
unsigned long n);
60#ifdef UNITTEST_COMPILER_IS_MSVC6
61 MemoryOutStream& operator <<(__int64 n);
62 MemoryOutStream& operator <<(
unsigned __int64 n);
64 MemoryOutStream& operator <<(
long long n);
65 MemoryOutStream& operator <<(
unsigned long long n);
67 MemoryOutStream& operator <<(
float f);
68 MemoryOutStream& operator <<(
double d);
69 MemoryOutStream& operator <<(
void const* p);
70 MemoryOutStream& operator <<(
unsigned int s);
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