Re: Redirect cout to a TextView
- From: Tomasz Olszewski <olszewst gmail com>
- To: Lucas van Dijk <luckyluke56 gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Redirect cout to a TextView
- Date: Sun, 13 May 2007 16:17:33 +0200
Lucas van Dijk napisał(a):
> Is it possible to redirect everything what's send to cout, to a TextView?
Sure! You'll have to create a special stream buffer and order std::cout
to replace its default buffer object with your own. Asking Google for
"cout redirection" should give you an answer how to achieve the latter.
To implement a new stream buffer I would recommend using Boost.Iostreams
library which will provide you with an easy to use framework.
BTW This is not really a gtkmm-related question.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]