<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[relocate outputs (cout printf etc.) to custom stream]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte gerne versuchen den ganzen output meines programs an einer zenralen stelle zu sammeln und wenn etwas neues ankommt eine funktion oder einen callback oder sowas auszuführen der beispielsweise eine textbox oder sowas aktualisiert.</p>
<p>Die erste Frage wäre wohl wie man etwa bei</p>
<pre><code>mystream &lt;&lt; mytext &lt;&lt; endl
</code></pre>
<p>auf den input reagieren und en callback ausführen kann?</p>
<p>C++ 11 ist keine option.</p>
<p>Danke schon einmal im vor-raus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/319998/relocate-outputs-cout-printf-etc-to-custom-stream</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 14:53:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/319998.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Sep 2013 20:04:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to relocate outputs (cout printf etc.) to custom stream on Wed, 11 Sep 2013 20:04:41 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte gerne versuchen den ganzen output meines programs an einer zenralen stelle zu sammeln und wenn etwas neues ankommt eine funktion oder einen callback oder sowas auszuführen der beispielsweise eine textbox oder sowas aktualisiert.</p>
<p>Die erste Frage wäre wohl wie man etwa bei</p>
<pre><code>mystream &lt;&lt; mytext &lt;&lt; endl
</code></pre>
<p>auf den input reagieren und en callback ausführen kann?</p>
<p>C++ 11 ist keine option.</p>
<p>Danke schon einmal im vor-raus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352016</guid><dc:creator><![CDATA[Pria]]></dc:creator><pubDate>Wed, 11 Sep 2013 20:04:41 GMT</pubDate></item><item><title><![CDATA[Reply to relocate outputs (cout printf etc.) to custom stream on Wed, 11 Sep 2013 20:05:47 GMT]]></title><description><![CDATA[<p><a href="http://stackoverflow.com/questions/10150468/how-to-redirect-cin-and-cout-to-files" rel="nofollow">http://stackoverflow.com/questions/10150468/how-to-redirect-cin-and-cout-to-files</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352017</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Wed, 11 Sep 2013 20:05:47 GMT</pubDate></item><item><title><![CDATA[Reply to relocate outputs (cout printf etc.) to custom stream on Fri, 13 Sep 2013 13:45:59 GMT]]></title><description><![CDATA[<p>Wie funktioniert das mit dem callback also angenommen ich habe das nicht auf ein file sondern auf einen stream umgeleitet und möchte wenn daten geschriben werden methode x ausühren, muss ich dann den operator &lt;&lt; überschreiben oder geht das auch anders?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352372</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352372</guid><dc:creator><![CDATA[Pria]]></dc:creator><pubDate>Fri, 13 Sep 2013 13:45:59 GMT</pubDate></item><item><title><![CDATA[Reply to relocate outputs (cout printf etc.) to custom stream on Fri, 13 Sep 2013 13:58:33 GMT]]></title><description><![CDATA[<p>Dann brauchst du einen eigenen Streambuffer: <a href="http://www.mr-edd.co.uk/blog/beginners_guide_streambuf" rel="nofollow">http://www.mr-edd.co.uk/blog/beginners_guide_streambuf</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352373</guid><dc:creator><![CDATA[Shade Of Mine]]></dc:creator><pubDate>Fri, 13 Sep 2013 13:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to relocate outputs (cout printf etc.) to custom stream on Fri, 13 Sep 2013 14:01:14 GMT]]></title><description><![CDATA[<p>Pria schrieb:</p>
<blockquote>
<p>Wie funktioniert das mit dem callback also angenommen ich habe das nicht auf ein file sondern auf einen stream umgeleitet und möchte wenn daten geschriben werden methode x ausühren, muss ich dann den operator &lt;&lt; überschreiben oder geht das auch anders?</p>
</blockquote>
<p>Nein, die richtige Stelle, um auf Dateneingang zu reagieren, ist doch logischerweise die Zielstelle. Also wahrscheinlich dein Zielstreambuf.</p>
<p>Wie wolltest du sämtliche operator&lt;&lt; überschreiben? Das geht doch gar nicht.</p>
<p>Das klingt irgendwie nach einem ziemlich umständlichen Weg, um etwas Einfaches zu erreichen. Was soll das am Ende werden, wenn es fertig ist? cout in eine Textbox umleiten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2352375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2352375</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 13 Sep 2013 14:01:14 GMT</pubDate></item></channel></rss>