Tag Parser
9.3.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
Go to the documentation of this file.
57 std::vector<const TagValue *>
values;
88 unsigned int count = 0;
89 for (
int i =
static_cast<int>(KnownField::Invalid) + 1, last =
static_cast<int>(
KnownField::Description); i <= last; ++i) {
92 if (overwrite || ownValue.
isEmpty()) {
virtual bool setValues(KnownField field, const std::vector< TagValue > &values)
Assigns the given values to the specified field.
The Tag class is used to store, read and write tag information.
Contains all classes and functions of the TagInfo library.
bool isEmpty() const
Returns whether no or an empty value is assigned.
virtual std::vector< const TagValue * > values(KnownField field) const
Returns the values of the specified field.
virtual const TagValue & value(KnownField field) const =0
Returns the value of the specified field.
virtual unsigned int insertValues(const Tag &from, bool overwrite)
Inserts all compatible values from another Tag.
KnownField
Specifies the field.
virtual const char * typeName() const
Returns the type name of the tag as C-style string.
std::string toString() const
Returns a string representation of the tag.
virtual bool supportsTarget() const
Returns an indication whether a target is supported by the tag.
std::string targetString() const
Returns the string representation for the assigned tag target.
The TagValue class wraps values of different types.
virtual ~Tag()
Destroys the Tag.
virtual bool setValue(KnownField field, const TagValue &value)=0
Assigns the given value to the specified field.