|
| VorbisComment () |
| Constructs a new Vorbis comment.
|
|
bool | canEncodingBeUsed (TagTextEncoding encoding) const override |
| Returns an indication whether the specified encoding can be used to provide string values for the tag.
|
|
const TagValue & | value (KnownField field) const override |
| Returns the value of the specified field.
|
|
bool | setValue (KnownField field, const TagValue &value) override |
| Assigns the given value to the specified field.
|
|
void | parse (OggIterator &iterator, VorbisCommentFlags flags, Diagnostics &diag) |
| Parses tag information using the specified Ogg iterator.
|
|
void | parse (OggIterator &iterator, VorbisCommentFlags flags, std::uint64_t &padding, Diagnostics &diag) |
| Parses tag information using the specified Ogg iterator.
|
|
void | parse (std::istream &stream, std::uint64_t maxSize, VorbisCommentFlags flags, Diagnostics &diag) |
| Parses tag information using the specified Ogg iterator.
|
|
void | make (std::ostream &stream, VorbisCommentFlags flags, Diagnostics &diag) |
| Writes tag information to the specified stream.
|
|
const TagValue & | vendor () const |
| Returns the vendor.
|
|
void | setVendor (const TagValue &vendor) |
| Sets the vendor.
|
|
bool | supportsMultipleValues (KnownField) const override |
| Allows multiple values for all fields.
|
|
virtual TagDataType | proposedDataType (KnownField field) const |
| Returns the proposed data type for the specified field as TagDataType.
|
|
| FieldMapBasedTag () |
| Constructs a new FieldMapBasedTag.
|
|
TagType | type () const |
| Returns the type of the tag as TagParser::TagType.
|
|
std::string_view | typeName () const |
| Returns the type name of the tag as C-style string.
|
|
TagTextEncoding | proposedTextEncoding () const |
| Returns the proposed text encoding.
|
|
const TagValue & | value (const IdentifierType &id) const |
| Returns the value of the field with the specified id.
|
|
std::vector< const TagValue * > | values (const IdentifierType &id) const |
| Returns the values of the field with the specified id.
|
|
std::vector< const TagValue * > | values (KnownField field) const |
| Returns the values of the specified field.
|
|
bool | setValue (const IdentifierType &id, const TagValue &value) |
| Assigns the given value to the field with the specified id.
|
|
bool | setValues (const IdentifierType &id, const std::vector< TagValue > &values) |
| Assigns the given values to the field with the specified id.
|
|
bool | setValues (KnownField field, const std::vector< TagValue > &values) |
| Assigns the given values to the field with the specified id.
|
|
bool | hasField (KnownField field) const |
| Returns an indication whether the specified field is present.
|
|
bool | hasField (const IdentifierType &id) const |
| Returns an indication whether the field with the specified id is present.
|
|
void | removeAllFields () |
| Removes all fields from the tag.
|
|
const std::multimap< IdentifierType, FieldType, Compare > & | fields () const |
| Returns the fields of the tag by providing direct access to the field map of the tag.
|
|
std::multimap< IdentifierType, FieldType, Compare > & | fields () |
| Returns the fields of the tag by providing direct access to the field map of the tag.
|
|
std::size_t | fieldCount () const |
| Returns the number of present fields.
|
|
IdentifierType | fieldId (KnownField value) const |
| Returns the ID for the specified field.
|
|
KnownField | knownField (const IdentifierType &id) const |
| Returns the field for the specified ID.
|
|
bool | supportsField (KnownField field) const |
| Returns an indication whether the specified field is supported by the tag.
|
|
TagDataType | proposedDataType (const IdentifierType &id) const |
| Returns the proposed data type for the field with the specified id.
|
|
virtual TagDataType | proposedDataType (KnownField field) const |
| Returns the proposed data type for the specified field as TagDataType.
|
|
std::size_t | insertFields (const FieldMapBasedTag< VorbisComment > &from, bool overwrite) |
| Inserts all fields from another tag of the same field type and compare function.
|
|
std::size_t | insertValues (const Tag &from, bool overwrite) |
| Inserts all compatible values from another Tag.
|
|
void | ensureTextValuesAreProperlyEncoded () |
| Ensures the encoding of all assigned text values is supported by the tag by converting the character set if necessary.
|
|
virtual | ~Tag () |
| Destroys the Tag.
|
|
std::string | toString () const |
| Returns a string representation of the tag.
|
|
const std::string & | version () const |
| Returns the version of the tag as std::string.
|
|
std::uint64_t | size () const |
| Returns the size the tag within the file it is parsed from in bytes.
|
|
virtual bool | supportsTarget () const |
| Returns an indication whether a target is supported by the tag.
|
|
const TagTarget & | target () const |
|
TagTarget & | target () |
| Returns the target of tag.
|
|
void | setTarget (const TagTarget &target) |
| Sets the target of tag.
|
|
virtual TagTargetLevel | targetLevel () const |
| Returns the name of the current tag target level.
|
|
std::string_view | targetLevelName () const |
| Returns the name of the current target level.
|
|
bool | isTargetingLevel (TagTargetLevel tagTargetLevel) const |
| Returns whether the tag is targeting the specified tagTargetLevel.
|
|
std::string | targetString () const |
| Returns the string representation for the assigned tag target.
|
|
virtual bool | supportsDescription (KnownField field) const |
| Returns an indications whether the specified field supports descriptions.
|
|
virtual bool | supportsMimeType (KnownField field) const |
| Returns an indications whether the specified field supports mime types.
|
|
Implementation of TagParser::Tag for Vorbis comments.
Definition at line 27 of file vorbiscomment.h.