60 std::vector<const TagValue *>
values;
91 auto count = std::size_t(0);
95 if (overwrite || ownValue.
isEmpty()) {
The TagValue class wraps values of different types.
bool isEmpty() const
Returns whether no or an empty value is assigned.
The Tag class is used to store, read and write tag information.
virtual bool setValue(KnownField field, const TagValue &value)=0
Assigns the given value to the specified field.
virtual bool supportsTarget() const
Returns an indication whether a target is supported by the tag.
virtual std::string_view typeName() const
Returns the type name of the tag as C-style string.
virtual std::size_t insertValues(const Tag &from, bool overwrite)
Inserts all compatible values from another Tag.
std::string toString() const
Returns a string representation of the tag.
virtual ~Tag()
Destroys the Tag.
Tag()
Constructs a new Tag.
virtual std::vector< const TagValue * > values(KnownField field) const
Returns the values of the specified field.
virtual bool setValues(KnownField field, const std::vector< TagValue > &values)
Assigns the given values to the specified field.
virtual const TagValue & value(KnownField field) const =0
Returns the value of the specified field.
std::string targetString() const
Returns the string representation for the assigned tag target.
Contains all classes and functions of the TagInfo library.
KnownField
Specifies the field.
The TagPrivate struct contains private fields of the Tag class.