Hi Brian,<br><br>I use a factory which creates frames based on the frame ID. <br><br>Users can register a new frame type by specifying the frame ID and a delegate. The delegate is responsible for returning an instance of a ID3Frame derived type. Derived types must override the Parse method.
<br><br>Unknown frames are parsed by an ID3BinaryFrame which simply reads the frame data into an array.<br><br>Hope this helps,<br><br>Andy.<br><br><div><span class="gmail_quote">On 24/01/07, <b class="gmail_sendername">Brian Mearns
</b> <<a href="mailto:bmearns@coe.neu.edu">bmearns@coe.neu.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have a question for developers who use an OO paradigm for ID3 work:
<br>Assuming there are different classes to implement different frames, but<br>not neccessarily one class per frame (for instance, a class to handle<br>text-frames and another to handle everything else), what pattern do you
<br>use to decide which class will be called on while parsing a tag? I'd<br>like to keep it as abstract as possible so that, for instance, if I add<br>another class to handle another type of frame later, it will be easy and
<br>consistent to work it in.<br><br>Is that at all clear?<br><br>Thanks,<br>-Brian<br><br>---------------------------------------------------------------------<br>To unsubscribe, e-mail: <a href="mailto:id3v2-unsubscribe@id3.org">
id3v2-unsubscribe@id3.org</a><br>For additional commands, e-mail: <a href="mailto:id3v2-help@id3.org">id3v2-help@id3.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Andy.