TagLib
2.0.2
|
An implementation of TagLib::File with WavPack specific methods. More...
#include <wavpackfile.h>
Public Types | |
enum | TagTypes { NoTags = 0x0000 , ID3v1 = 0x0001 , APE = 0x0002 , AllTags = 0xffff } |
![]() | |
enum | Position { Beginning , Current , End } |
enum | StripTags { StripNone , StripOthers } |
enum | DuplicateTags { Duplicate , DoNotDuplicate } |
Public Member Functions | |
File (FileName file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average) | |
File (IOStream *stream, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average) | |
~File () override | |
File (const File &)=delete | |
File & | operator= (const File &)=delete |
TagLib::Tag * | tag () const override |
PropertyMap | properties () const override |
void | removeUnsupportedProperties (const StringList &unsupported) override |
PropertyMap | setProperties (const PropertyMap &) override |
Properties * | audioProperties () const override |
bool | save () override |
ID3v1::Tag * | ID3v1Tag (bool create=false) |
APE::Tag * | APETag (bool create=false) |
void | strip (int tags=AllTags) |
bool | hasID3v1Tag () const |
bool | hasAPETag () const |
![]() | |
File (const File &)=delete | |
File & | operator= (const File &)=delete |
FileName | name () const |
virtual StringList | complexPropertyKeys () const |
virtual List< VariantMap > | complexProperties (const String &key) const |
virtual bool | setComplexProperties (const String &key, const List< VariantMap > &value) |
ByteVector | readBlock (size_t length) |
void | writeBlock (const ByteVector &data) |
offset_t | find (const ByteVector &pattern, offset_t fromOffset=0, const ByteVector &before=ByteVector()) |
offset_t | rfind (const ByteVector &pattern, offset_t fromOffset=0, const ByteVector &before=ByteVector()) |
void | insert (const ByteVector &data, offset_t start=0, size_t replace=0) |
void | removeBlock (offset_t start=0, size_t length=0) |
bool | readOnly () const |
bool | isOpen () const |
bool | isValid () const |
void | seek (offset_t offset, Position p=Beginning) |
void | clear () |
offset_t | tell () const |
offset_t | length () |
Static Public Member Functions | |
static bool | isSupported (IOStream *stream) |
Additional Inherited Members | |
![]() | |
File (FileName fileName) | |
File (IOStream *stream) | |
void | setValid (bool valid) |
void | truncate (offset_t length) |
![]() | |
static unsigned int | bufferSize () |
An implementation of TagLib::File with WavPack specific methods.
This implements and provides an interface for WavPack files to the TagLib::Tag and TagLib::AudioProperties interfaces by way of implementing the abstract TagLib::File API as well as providing some additional information specific to WavPack files.
TagLib::WavPack::File::File | ( | FileName | file, |
bool | readProperties = true, | ||
Properties::ReadStyle | propertiesStyle = Properties::Average ) |
Constructs a WavPack file from file. If readProperties is true
the file's audio properties will also be read using propertiesStyle. If false
, propertiesStyle is ignored
References TagLib::AudioProperties::Average.
Referenced by File(), and operator=().
TagLib::WavPack::File::File | ( | IOStream * | stream, |
bool | readProperties = true, | ||
Properties::ReadStyle | propertiesStyle = Properties::Average ) |
Constructs a WavPack file from file. If readProperties is true
the file's audio properties will also be read using propertiesStyle. If false
, propertiesStyle is ignored.
References TagLib::AudioProperties::Average.
|
overridevirtual |
Destroys this instance of the File.
Reimplemented from TagLib::File.
APE::Tag * TagLib::WavPack::File::APETag | ( | bool | create = false | ) |
Returns a pointer to the APE tag of the file.
If create is false
(the default) this may return a null pointer if there is no valid APE tag. If create is true
it will create an APE tag if one does not exist and returns a valid pointer.
|
overridevirtual |
Returns the MPC::Properties for this file. If no audio properties were read then this will return a null pointer.
Implements TagLib::File.
bool TagLib::WavPack::File::hasAPETag | ( | ) | const |
bool TagLib::WavPack::File::hasID3v1Tag | ( | ) | const |
Returns whether or not the file on disk actually has an ID3v1 tag.
ID3v1::Tag * TagLib::WavPack::File::ID3v1Tag | ( | bool | create = false | ) |
Returns a pointer to the ID3v1 tag of the file.
If create is false
(the default) this may return a null pointer if there is no valid ID3v1 tag. If create is true
it will create an ID3v1 tag if one does not exist and returns a valid pointer.
|
static |
Check if the given stream can be opened as a WavPack file.
References TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE.
|
overridevirtual |
Implements the unified property interface – export function. If the file contains both an APE and an ID3v1 tag, only APE will be converted to the PropertyMap.
Reimplemented from TagLib::File.
|
overridevirtual |
Removes unsupported properties, or a subset of them, from the file's metadata. The parameter properties must contain only entries from properties().unsupportedData().
Reimplemented from TagLib::File.
|
overridevirtual |
|
overridevirtual |
Implements the unified property interface – import function. Creates an APE tag if it does not exists and calls setProperties() on that. Any existing ID3v1 tag will be updated as well.
Reimplemented from TagLib::File.
void TagLib::WavPack::File::strip | ( | int | tags = AllTags | ) |
|
overridevirtual |
Returns the Tag for this file. This will be an APE tag, an ID3v1 tag or a combination of the two.
Implements TagLib::File.