« Return to Thread: Redirecting cout to a TextBuffer

Re: Redirecting cout to a TextBuffer

by Søren Hauberg-2 :: Rate this Message:

Reply to Author | View in Thread

2008/5/12 Charles McLachlan <cim20@...>:
> If the above code works (its an interesting idea that I have not seen
> before), then my advice would be subclass your own streambuf. You'll need to
> overload the the sync and overflow members. These have slightly weird
> actions and (on first viewing) appear non trivial.

I haven't had the time to actually implement this, but it seems just
like the approach I was looking for.

Thanks,
Søren
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

 « Return to Thread: Redirecting cout to a TextBuffer