<div dir="ltr"><div style>You should take a look at the api documentation. Most of the classes (if not all) have a description.</div><div style>From <a href="http://taglib.github.io/api/classTagLib_1_1FileRef.html">http://taglib.github.io/api/classTagLib_1_1FileRef.html</a> :</div>
<div style><br></div><div style>"<a class="" href="http://taglib.github.io/api/classTagLib_1_1FileRef.html" title="This class provides a simple abstraction for creating and handling files." style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:rgb(0,136,204)">FileRef</a><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px"> </span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px">exists to provide a minimal, generic and value-based wrapper around a</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px"> </span><a class="" href="http://taglib.github.io/api/classTagLib_1_1File.html" title="A file class with some useful methods for tag manipulation." style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:rgb(0,136,204)">File</a><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px">. It is lightweight and implicitly shared, and as such suitable for pass-by-value use. This hides some of the uglier details of</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px"> </span><a class="" href="http://taglib.github.io/api/classTagLib_1_1File.html" title="A file class with some useful methods for tag manipulation." style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:rgb(0,136,204)">TagLib::File</a><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px"> </span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px">and the non-generic portions of the concrete file implementations.</span></div>
<p style="margin:0px 0px 9px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;color:rgb(51,51,51)">This class is useful in a "simple usage" situation where it is desirable to be able to get and set some of the tag information that is similar across file types."</p>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/19 Nouvelle Collection <span dir="ltr"><<a href="mailto:nouvellecollection@gmail.com" target="_blank">nouvellecollection@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I don't really understand the difference between TagLib::FileRef and<br>
TagLib::File.<br>
<br>
If I use TagLib::FileRef f("foo.mp3");, then I cannot use<br>
f.tag()->removeFrames(...).<br>
<br>
With TagLib::MPEG::File f("foo.mp3"), it seems possible to do<br>
f.ID3v2Tag()->removeFrames.<br>
<br>
<br>
Why is there 2 different things : TagLib::FileRef and TagLib::File<br>
for the same task (i.e. working with a file) ?<br>
<br>
When is it better to open a file with TagLib::MPEG::File f("foo.mp3")<br>
and when is it better to use TagLib::FileRef f("foo.mp3")    (like in<br>
the simple example in <a href="http://taglib.github.io/api/" target="_blank">http://taglib.github.io/api/</a>) ?<br>
<br>
Thanks in advance.<br>
_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
</blockquote></div><br></div>