MPD
0.20.15
|
The meta information about a song file. More...
#include <Tag.hxx>
Data Structures | |
class | const_iterator |
Public Member Functions | |
Tag () | |
Create an empty tag. More... | |
Tag (const Tag &other) | |
Tag (Tag &&other) | |
~Tag () | |
Free the tag object and all its items. More... | |
Tag & | operator= (const Tag &other)=delete |
Tag & | operator= (Tag &&other) |
void | MoveItemsFrom (Tag &&other) |
Similar to the move operator, but move only the TagItem array. More... | |
bool | IsEmpty () const |
Returns true if the tag contains no items. More... | |
bool | IsDefined () const |
Returns true if the tag contains any information. More... | |
void | Clear () |
Clear everything, as if this was a new Tag object. More... | |
gcc_pure const char * | GetValue (TagType type) const noexcept |
Returns the first value of the specified tag type, or nullptr if none is present in this tag object. More... | |
gcc_pure bool | HasType (TagType type) const noexcept |
Checks whether the tag contains one or more items with the specified type. More... | |
const_iterator | begin () const |
const_iterator | end () const |
Static Public Member Functions | |
static gcc_malloc Tag * | Merge (const Tag &base, const Tag &add) |
Merges the data from two tags. More... | |
static gcc_malloc Tag * | MergeReplace (Tag *base, Tag *add) |
Merges the data from two tags. More... | |
Data Fields | |
SignedSongTime | duration |
The duration of the song. More... | |
bool | has_playlist |
Does this file have an embedded playlist (e.g. More... | |
unsigned short | num_items |
the total number of tag items in the items array More... | |
TagItem ** | items |
an array of tag items More... | |
The meta information about a song file.
It is a MPD specific subset of tags (e.g. from ID3, vorbis comments, ...).
Tag::Tag | ( | const Tag & | other | ) |
|
inline |
void Tag::Clear | ( | ) |
Clear everything, as if this was a new Tag object.
|
inline |
Returns the first value of the specified tag type, or nullptr if none is present in this tag object.
Checks whether the tag contains one or more items with the specified type.
|
inline |
|
inline |
|
static |
Merges the data from two tags.
If both tags share data for the same TagType, only data from "add" is used.
|
static |
Merges the data from two tags.
Any of the two may be nullptr. Both are freed by this function.
|
inline |
SignedSongTime Tag::duration |
bool Tag::has_playlist |
unsigned short Tag::num_items |