Constructing an ID3v2::Frame without a file
wheeler at kde.org
Fri Aug 9 17:02:17 BST 2019
On 09/08/2019 17:59, Fred Gleason wrote:
> On Fri, 2019-08-09 at 00:27 +0200, Scott Wheeler wrote:
>> You can either create an instance of MPEG::File using an IOStream
>> (rather than a File), or you can use ID3v2::FrameFactory::createFrame
>> create frames directly from a ByteArray:
> ID3v2::FrameFactory::createFrame() is not a static method, which means
> that I a need ID3v2::FrameFactory instance to work with. However, there
> are no public constructors for ID3v2::FrameFactory!
> How does one get a ID3v2::FrameFactory without a file present?
You use the instance() method:
That's called a "singleton" and such is common in object-oriented design:
More information about the taglib-devel