<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Stream - Comments</title>
 <link>http://www.newlc.com/forum/stream</link>
 <description>Comments for &quot;Stream&quot;</description>
 <language>en</language>
<item>
 <title>Re: Stream</title>
 <link>http://www.newlc.com/forum/stream#comment-45726</link>
 <description>&lt;p&gt;If you can&#039;t distinguish what type the object is then how can using RWriteStream?&lt;/p&gt;

&lt;p&gt;I didn&#039;t mean your constructor, I meant your operator=. &lt;br /&gt;
I think you would just have to write overloads of operator&lt;&lt;.&lt;/p&gt;

&lt;p&gt;But a main point is the viability of writing a wrapper around a descriptor, the reason one doesn&#039;t exist so far for all descriptors is the scale of it. What is the intent of creating a wrapper just for RBuf?&lt;/p&gt;</description>
 <pubDate>Thu, 10 Apr 2008 23:29:58 +0200</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 45726 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Stream</title>
 <link>http://www.newlc.com/forum/stream#comment-45725</link>
 <description>&lt;p&gt;I thought that approach at first, but w/out RTTI I can not distinguish what type the object is, i&#039;m trying to append.&lt;br /&gt;
And my constructor doesn&#039;t do anything.. the equal operator takes a known datatype, but how would I generalize this?&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 10 Apr 2008 23:04:21 +0200</pubDate>
 <dc:creator>mtkh46</dc:creator>
 <guid isPermaLink="false">comment 45725 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Stream</title>
 <link>http://www.newlc.com/forum/stream#comment-45724</link>
 <description>&lt;p&gt;Trying to create a wrapper class around a descriptor is a whole topic to itself, but leaving that aside (apart from to say you will have a memory leak as things currently are).&lt;/p&gt;

&lt;p&gt;If you want to store the input into the RBuf8 why not just do it yourself directly? In a similar way to what  you are doing in the constructor.&lt;/p&gt;

&lt;p&gt;If you do try to use RWriteStream/RReadStream how will it know what the type of your parameter is or how long it is? If you do it yourself how will you know what type of object you have or how long it is?&lt;/p&gt;</description>
 <pubDate>Thu, 10 Apr 2008 22:30:30 +0200</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 45724 at http://www.newlc.com</guid>
</item>
<item>
 <title>Stream</title>
 <link>http://www.newlc.com/forum/stream</link>
 <description>&lt;p&gt;I&#039;m creating a string class(which is basically a wrapper around RBuf).&lt;/p&gt;

&lt;p&gt;my class looks like so..&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;class string{&lt;br /&gt;public:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string() {}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~string(){}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inline string&amp;amp; operator=(const char* cString){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locString.Create(strlen(cString)+1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locString.Copy((const TUint8*)cString);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return *this;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;private:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RBuf8 locString;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;};&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/stream&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/stream#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Thu, 10 Apr 2008 17:32:36 +0200</pubDate>
 <dc:creator>mtkh46</dc:creator>
 <guid isPermaLink="false">20679 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
