<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C++ write your own stream class - part 2: a working Pico UART IO stream (embedded friendly C++)</title><link>/products/raspberry-pi/b/blog/posts/c-write-your-own-stream-class---part-2-pico-uart-io-stream-embedded-friendly-c</link><description>In C++ it&amp;#39;s common to stream data. You write to a file using the &amp;lt;&amp;lt; operator. You read with &amp;gt;&amp;gt;.
example: 
cout &amp;lt;&amp;lt; &amp;quot;hello, world! &amp;lt;&amp;lt; endl;
In this blog I&amp;#39;m making my own minimal in, out and in-out stream class fo...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: C++ write your own stream class - part 2: a working Pico UART IO stream (embedded friendly C++)</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/c-write-your-own-stream-class---part-2-pico-uart-io-stream-embedded-friendly-c</link><pubDate>Sat, 03 Jan 2026 14:17:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f2f2dbd0-7704-41c3-b40f-06f3aeb67806</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;added a ready-to-build repository for the example code:&amp;nbsp;&lt;a id="" href="https://github.com/jancumps/pico_uart_stream_example" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://github.com/jancumps/pico_uart_stream_example&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29357&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ write your own stream class - part 2: a working Pico UART IO stream (embedded friendly C++)</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/c-write-your-own-stream-class---part-2-pico-uart-io-stream-embedded-friendly-c</link><pubDate>Mon, 17 Nov 2025 19:49:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f2f2dbd0-7704-41c3-b40f-06f3aeb67806</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice post Jan.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29357&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ write your own stream class - part 2: a working Pico UART IO stream (embedded friendly C++)</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/c-write-your-own-stream-class---part-2-pico-uart-io-stream-embedded-friendly-c</link><pubDate>Sun, 16 Nov 2025 20:28:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f2f2dbd0-7704-41c3-b40f-06f3aeb67806</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I created a &lt;a href="https://github.com/jancumps/pico_uart_stream" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;github repo for the library&lt;/a&gt;, and attached a working VSCode project to the main post.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29357&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ write your own stream class - part 2: a working Pico UART IO stream (embedded friendly C++)</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/c-write-your-own-stream-class---part-2-pico-uart-io-stream-embedded-friendly-c</link><pubDate>Sat, 15 Nov 2025 19:13:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f2f2dbd0-7704-41c3-b40f-06f3aeb67806</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;what about his?:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Customer&amp;nbsp;record:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:0e76bead-88bb-403f-85a6-77dab596dcc6:type=csharp&amp;text=struct%20customer%20%7B%0D%0A%20%20%20%20customer%20%28const%20std%3A%3Astring%26%20name%2C%20int%20credit%29%20%3A%20name%28name%29%2C%20credit%28credit%29%20%7B%7D%0D%0A%20%20%20%20const%20std%3A%3Astring%20name%3B%0D%0A%20%20%20%20int%20credit%3B%0D%0A%20%20%20%20operator%20std%3A%3Astring%28%29%20const%20%7B%0D%0A%20%20%20%20%20%20%20%20return%20name%3B%0D%0A%20%20%20%20%7D%0D%0A%7D%3B%0D%0A]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Customer database:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:59357651-511b-4d5f-8e15-e55f96f9899f:type=csharp&amp;text=std%3A%3Aarray%3Ccustomer%2C%203%3E%20customers%20%7B%7B%7B%22joe%22%2C%203%7D%2C%20%7B%22jane%22%2C%20500%7D%2C%20%7B%22averall%22%2C%20-8%7D%7D%7D%3B]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stream insolvent customers to uart:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:770d39fa-ccdb-4d2f-9942-b4f37e6eac47:type=csharp&amp;text=%20%20%20%20u%20%3C%3C%20%22insolvent%20customers%3A%22%20%3C%3C%20%22%5Cn%22%3B%0A%20%20%20%20for%28const%20auto%20%26c%20%3A%20customers%20%7C%20std%3A%3Aviews%3A%3Afilter%28%5B%5D%28const%20customer%26%20c%29%7B%20return%20c.credit%20%3C%200%3B%7D%29%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20u%20%3C%3C%20c%20%3C%3C%20%22%5Cn%22%3B%0A%20%20%20%20%7D]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Output:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt=" " height="57" src="/resized-image/__size/986x114/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-f2f2dbd0-7704-41c3-b40f-06f3aeb67806/pastedimage1763234068633v1.png" width="493" /&gt;&lt;/p&gt;
&lt;p&gt;and wealthy customers-:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:220bac08-c9c6-4778-a351-12b858e48493:type=csharp&amp;text=%20%20%20%20u%20%3C%3C%20%22rich%20customers%3A%22%20%3C%3C%20%22%5Cn%22%3B%0A%20%20%20%20for%28const%20auto%20%26c%20%3A%20customers%20%7C%20std%3A%3Aviews%3A%3Afilter%28%5B%5D%28const%20customer%26%20c%29%7B%20return%20c.credit%20%3E%20100%3B%7D%29%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20u%20%3C%3C%20c%20%3C%3C%20%22%5Cn%22%3B%0A%20%20%20%20%7D]&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="37" src="/resized-image/__size/322x74/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-f2f2dbd0-7704-41c3-b40f-06f3aeb67806/pastedimage1763234373564v1.png" width="161" /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29357&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ write your own stream class - part 2: a working Pico UART IO stream (embedded friendly C++)</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/c-write-your-own-stream-class---part-2-pico-uart-io-stream-embedded-friendly-c</link><pubDate>Sat, 15 Nov 2025 18:37:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f2f2dbd0-7704-41c3-b40f-06f3aeb67806</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;You could get code like this&amp;nbsp;[emoticon:c4563cd7d5574777a71c318021cbbcc8]&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3d1a88e3-b288-46c2-8deb-bf24e224cde7:type=csharp&amp;text=%20%20%20%20dog%20d%28%22odie%22%29%3B%0D%0A%20%20%20%20cat%20c%28%22garfield%22%29%3B%0D%0A%20%20%20%20u%20%3C%3C%20d%20%3C%3C%20%22%5Cn%22%20%3C%3C%20c%20%3C%3C%20%22%5Cn%22%20%3B%20%20]&lt;/p&gt;
&lt;p&gt;&lt;img height="51" src="/resized-image/__size/990x102/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-f2f2dbd0-7704-41c3-b40f-06f3aeb67806/pastedimage1763231912619v1.png" width="495" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29357&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>