TagLib
1.13.1
|
The main class in the ID3v2 implementation. More...
#include <infotag.h>
Public Member Functions | |
Tag () | |
Tag (const ByteVector &data) | |
virtual | ~Tag () |
virtual String | title () const |
virtual String | artist () const |
virtual String | album () const |
virtual String | comment () const |
virtual String | genre () const |
virtual unsigned int | year () const |
virtual unsigned int | track () const |
virtual void | setTitle (const String &s) |
virtual void | setArtist (const String &s) |
virtual void | setAlbum (const String &s) |
virtual void | setComment (const String &s) |
virtual void | setGenre (const String &s) |
virtual void | setYear (unsigned int i) |
virtual void | setTrack (unsigned int i) |
virtual bool | isEmpty () const |
FieldListMap | fieldListMap () const |
String | fieldText (const ByteVector &id) const |
void | setFieldText (const ByteVector &id, const String &s) |
void | removeField (const ByteVector &id) |
ByteVector | render () const |
![]() | |
PropertyMap | properties () const |
void | removeUnsupportedProperties (const StringList &properties) |
PropertyMap | setProperties (const PropertyMap &properties) |
Static Public Member Functions | |
static void | setStringHandler (const StringHandler *handler) |
![]() | |
static void | duplicate (const Tag *source, Tag *target, bool overwrite=true) |
Protected Member Functions | |
void | parse (const ByteVector &data) |
![]() | |
Tag () | |
The main class in the ID3v2 implementation.
This is the main class in the INFO tag implementation. RIFF INFO tag is a metadata format found in WAV audio and AVI video files. Though it is a part of Microsoft/IBM's RIFF specification, the author could not find the official documents about it. So, this implementation is referring to unofficial documents online and some applications' behaviors especially Windows Explorer.
TagLib::RIFF::Info::Tag::Tag | ( | ) |
Constructs an empty INFO tag.
TagLib::RIFF::Info::Tag::Tag | ( | const ByteVector & | data | ) |
Constructs an INFO tag read from data which is contents of "LIST" chunk.
|
virtual |
Destroys this Tag instance.
Reimplemented from TagLib::Tag.
|
virtual |
Returns the album name; if no album name is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns the artist name; if no artist name is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns the track comment; if no comment is present in the tag String::null will be returned.
Implements TagLib::Tag.
FieldListMap TagLib::RIFF::Info::Tag::fieldListMap | ( | ) | const |
Returns a copy of the internal fields of the tag. The returned map directly reflects the contents of the "INFO" chunk.
String TagLib::RIFF::Info::Tag::fieldText | ( | const ByteVector & | id | ) | const |
|
virtual |
Returns the genre name; if no genre is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns true if the tag does not contain any data. This should be reimplemented in subclasses that provide more than the basic tagging abilities in this class.
Reimplemented from TagLib::Tag.
|
protected |
Pareses the body of the tag in data.
void TagLib::RIFF::Info::Tag::removeField | ( | const ByteVector & | id | ) |
ByteVector TagLib::RIFF::Info::Tag::render | ( | ) | const |
Render the tag back to binary data, suitable to be written to disk.
|
virtual |
Sets the album to s. If s is String::null then this value will be cleared.
Implements TagLib::Tag.
|
virtual |
Sets the artist to s. If s is String::null then this value will be cleared.
Implements TagLib::Tag.
|
virtual |
Sets the comment to s. If s is String::null then this value will be cleared.
Implements TagLib::Tag.
void TagLib::RIFF::Info::Tag::setFieldText | ( | const ByteVector & | id, |
const String & | s ) |
|
virtual |
Sets the genre to s. If s is String::null then this value will be cleared. For tag formats that use a fixed set of genres, the appropriate value will be selected based on a string comparison. A list of available genres for those formats should be available in that type's implementation.
Implements TagLib::Tag.
|
static |
Sets the string handler that decides how the text data will be converted to and from binary data. If the parameter handler is null, the previous handler is released and default UTF-8 handler is restored.
|
virtual |
Sets the title to s. If s is String::null then this value will be cleared.
Implements TagLib::Tag.
|
virtual |
Sets the track to i. If s is 0 then this value will be cleared.
Implements TagLib::Tag.
|
virtual |
Sets the year to i. If s is 0 then this value will be cleared.
Implements TagLib::Tag.
|
virtual |
Returns the track name; if no track name is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns the track number; if there is no track number set, this will return 0.
Implements TagLib::Tag.
|
virtual |
Returns the year; if there is no year set, this will return 0.
Implements TagLib::Tag.