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.
constexpr bool IsNegative() const
gcc_pure bool IsDefined() const
Returns true if the object contains any information.
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.
bool IsEmpty() const
Returns true if the tag contains no items.
A class that constructs Tag objects.
gcc_pure bool HasType(TagType type) const
Checks whether the tag contains one or more items with the specified type.
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.
void RemoveType(TagType type)
Removes all tag items of the specified type.
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 RemoveAll()
Removes all tag items.