TagLib::ID3v1::Tag Class Reference
The main class in the ID3v1 implementation. More...
#include <id3v1tag.h>
Inheritance diagram for TagLib::ID3v1::Tag:

Public Member Functions | |
Tag () | |
Tag (File *file, long tagOffset) | |
virtual | ~Tag () |
ByteVector | render () const |
virtual String | title () const |
virtual String | artist () const |
virtual String | album () const |
virtual String | comment () const |
virtual String | genre () const |
virtual uint | year () const |
virtual uint | 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 (uint i) |
virtual void | setTrack (uint i) |
Static Public Member Functions | |
ByteVector | fileIdentifier () |
Protected Member Functions | |
void | read () |
void | parse (const ByteVector &data) |
Detailed Description
The main class in the ID3v1 implementation.This is an implementation of the ID3v1 format. ID3v1 is both the simplist and most common of tag formats but is rather limited. Because of its pervasiveness and the way that applications have been written around the fields that it provides, the generic TagLib::Tag API is a mirror of what is provided by ID3v1.
- Note:
- Most fields are truncated to a maximum of 28-30 bytes. The truncation happens automatically when the tag is rendered.
Definition at line 49 of file id3v1tag.h.
Constructor & Destructor Documentation
|
Create an ID3v1 tag with default values. Reimplemented from TagLib::Tag. |
|
Create an ID3v1 tag and parse the data in file starting at tagOffset. |
|
Destroys this Tag instance. Reimplemented from TagLib::Tag. |
Member Function Documentation
|
Renders the in memory values to a ByteVector suitable for writing to the file. |
|
Returns the string "TAG" suitable for usage in locating the tag in a file. |
|
Returns the track name; if no track name is present in the tag String::null will be returned. Implements TagLib::Tag. |
|
Returns the artist name; if no artist name is present in the tag String::null will be returned. Implements TagLib::Tag. |
|
Returns the album name; if no album name is present in the tag String::null will be returned. Implements TagLib::Tag. |
|
Returns the track comment; if no comment is present in the tag String::null will be returned. Implements TagLib::Tag. |
|
Returns the genre name; if no genre is present in the tag String::null will be returned. Implements TagLib::Tag. |
|
Returns the year; if there is no year set, this will return 0. Implements TagLib::Tag. |
|
Returns the track number; if there is no track number set, this will return 0. Implements TagLib::Tag. |
|
Sets the title to s. If s is String::null then this value will be cleared. Implements TagLib::Tag. |
|
Sets the artist to s. If s is String::null then this value will be cleared. Implements TagLib::Tag. |
|
Sets the album to s. If s is String::null then this value will be cleared. Implements TagLib::Tag. |
|
Sets the album to s. If s is String::null then this value will be cleared. Implements TagLib::Tag. |
|
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. |
|
Sets the year to i. If s is 0 then this value will be cleared. Implements TagLib::Tag. |
|
Sets the track to i. If s is 0 then this value will be cleared. Implements TagLib::Tag. |
|
Reads from the file specified in the constructor. |
|
Pareses the body of the tag in data. |
The documentation for this class was generated from the following file: