11 #ifndef ROOT_TGTextViewStream
12 #define ROOT_TGTextViewStream
30 #if defined (R__WIN32) && defined (__MAKECINT__)
31 typedef basic_streambuf<char, char_traits<char> > streambuf;
34 class TGTextViewStreamBuf :
public std::streambuf
37 TGTextView *fTextView;
38 std::vector<char> fLinebuffer;
41 std::vector<char> fInputbuffer;
42 typedef std::char_traits<char> traits;
43 virtual int overflow(
int = traits::eof());
46 TGTextViewStreamBuf(TGTextView *textview);
47 virtual ~TGTextViewStreamBuf() { }
49 ClassDef(TGTextViewStreamBuf, 0)
53 class TGTextViewostream :
public TGTextView,
public std::ostream
56 TGTextViewStreamBuf fStreambuffer;
59 TGTextViewostream(
const TGWindow* parent = 0, UInt_t w = 1, UInt_t h = 1,
60 Int_t
id = -1, UInt_t sboptions = 0,
61 Pixel_t back = TGTextView::GetWhitePixel());
62 TGTextViewostream(
const TGWindow *parent, UInt_t w, UInt_t h,
63 TGText *text, Int_t
id, UInt_t sboptions, ULong_t back);
64 TGTextViewostream(
const TGWindow *parent, UInt_t w, UInt_t h,
65 const char *
string, Int_t
id, UInt_t sboptions,
67 virtual ~TGTextViewostream() { }
69 ClassDef(TGTextViewostream, 0)