20 #ifndef MPD_TAG_BUILDER_HXX 21 #define MPD_TAG_BUILDER_HXX 50 std::vector<TagItem *> items;
111 duration = _duration;
115 has_playlist = _has_playlist;
TagBuilder()
Create an empty tag.
void Complement(const Tag &other)
Copy attributes and items from the other object that do not exist in this object. ...
The meta information about a song file.
gcc_nonnull_all void AddItem(TagType type, StringView value)
Appends a new tag item.
TagBuilder & operator=(const TagBuilder &other)
void AddEmptyItem(TagType type)
Appends a new tag item with an empty value.
constexpr bool IsNegative() const
A class that constructs Tag objects.
gcc_pure bool HasType(TagType type) const noexcept
Checks whether the tag contains one or more items with the specified type.
bool IsEmpty() const
Returns true if the tag contains no items.
TagType
Codes for the type of a tag item.
void SetHasPlaylist(bool _has_playlist)
Tag Commit()
Create a new Tag instance from data in this object.
gcc_pure bool IsDefined() const noexcept
Returns true if the object contains any information.
Tag * CommitNew()
Create a new Tag instance from data in this object.
A variant of SongTime that is based on a signed integer.
void SetDuration(SignedSongTime _duration)
void RemoveType(TagType type) noexcept
Removes all tag items of the specified type.
void RemoveAll() noexcept
Removes all tag items.