Tag Parser
6.1.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The TagField class is used by FieldMapBasedTag to store the fields. More...
#include <generictagfield.h>
Public Types | |
typedef TagFieldTraits< ImplementationType >::implementationType | implementationType |
typedef TagFieldTraits< ImplementationType >::identifierType | identifierType |
typedef TagFieldTraits< ImplementationType >::typeInfoType | typeInfoType |
Public Member Functions | |
TagField () | |
Constructs an empty TagField. More... | |
TagField (const identifierType &id, const TagValue &value) | |
Constructs a new TagField with the specified id and value. More... | |
~TagField () | |
Destroys the TagField. More... | |
const identifierType & | id () const |
Returns the id of the current TagField. More... | |
void | setId (const identifierType &id) |
Sets the id of the current Tag Field. More... | |
void | clearId () |
Clears the id of the current TagField. More... | |
TagValue & | value () |
Returns the value of the current TagField. More... | |
const TagValue & | value () const |
Returns the value of the current TagField. More... | |
void | setValue (const TagValue &value) |
Sets the value of the current TagField. More... | |
void | clearValue () |
Clears the value of the current TagField. More... | |
const typeInfoType & | typeInfo () const |
Returns the type info of the current TagField. More... | |
void | setTypeInfo (const typeInfoType &typeInfo) |
Sets the type info of the current TagField. More... | |
void | removeTypeInfo () |
Removes the type info from the current TagField. More... | |
bool | isTypeInfoAssigned () const |
Returns an indication whether a type info is assigned. More... | |
bool | isDefault () const |
Returns an indication whether the field is labeled as default. More... | |
void | setDefault (bool isDefault) |
Sets whether the field is labeled as default. More... | |
void | clear () |
Clears id, value, type info and sets default flag to false. More... | |
bool | isAdditionalTypeInfoUsed () const |
Returns an indication whether the additional type info is used. More... | |
const std::vector< ImplementationType > & | nestedFields () const |
Returns the nested fields. More... | |
std::vector< ImplementationType > & | nestedFields () |
Returns the nested fields. More... | |
bool | supportsNestedFields () const |
Returns whether nested fields are supported by the implementation. More... | |
Friends | |
class | TagFieldTraits< ImplementationType > |
The TagField class is used by FieldMapBasedTag to store the fields.
A TagField consists of an identifier and a value. An additional type info might be assigned as well. The usage of the type info depends on the particular tag implementation.
Definition at line 9 of file generictagfield.h.
typedef TagFieldTraits<ImplementationType>::identifierType Media::TagField< ImplementationType >::identifierType |
Definition at line 37 of file generictagfield.h.
typedef TagFieldTraits<ImplementationType>::implementationType Media::TagField< ImplementationType >::implementationType |
Definition at line 36 of file generictagfield.h.
typedef TagFieldTraits<ImplementationType>::typeInfoType Media::TagField< ImplementationType >::typeInfoType |
Definition at line 38 of file generictagfield.h.
Media::TagField< ImplementationType >::TagField | ( | ) |
Constructs an empty TagField.
Definition at line 85 of file generictagfield.h.
Media::TagField< ImplementationType >::TagField | ( | const identifierType & | id, |
const TagValue & | value | ||
) |
Constructs a new TagField with the specified id and value.
Definition at line 97 of file generictagfield.h.
Media::TagField< ImplementationType >::~TagField | ( | ) |
Destroys the TagField.
Definition at line 109 of file generictagfield.h.
void Media::TagField< ImplementationType >::clear | ( | ) |
Clears id, value, type info and sets default flag to false.
Definition at line 235 of file generictagfield.h.
|
inline |
Clears the id of the current TagField.
Definition at line 134 of file generictagfield.h.
|
inline |
Clears the value of the current TagField.
Definition at line 170 of file generictagfield.h.
|
inline |
Returns the id of the current TagField.
Definition at line 116 of file generictagfield.h.
|
inline |
Returns an indication whether the additional type info is used.
The default implementation always returns false. The method might be reimplemented when subclassing.
Definition at line 252 of file generictagfield.h.
|
inline |
Returns an indication whether the field is labeled as default.
Definition at line 217 of file generictagfield.h.
|
inline |
Returns an indication whether a type info is assigned.
Definition at line 208 of file generictagfield.h.
const std::vector< ImplementationType > & Media::TagField< ImplementationType >::nestedFields | ( | ) | const |
Returns the nested fields.
Definition at line 261 of file generictagfield.h.
|
inline |
Returns the nested fields.
Definition at line 272 of file generictagfield.h.
|
inline |
Removes the type info from the current TagField.
Definition at line 198 of file generictagfield.h.
|
inline |
Sets whether the field is labeled as default.
Definition at line 226 of file generictagfield.h.
|
inline |
Sets the id of the current Tag Field.
Definition at line 125 of file generictagfield.h.
|
inline |
Sets the type info of the current TagField.
Definition at line 188 of file generictagfield.h.
|
inline |
Sets the value of the current TagField.
Definition at line 161 of file generictagfield.h.
|
inline |
Returns whether nested fields are supported by the implementation.
Definition at line 281 of file generictagfield.h.
|
inline |
Returns the type info of the current TagField.
Definition at line 179 of file generictagfield.h.
|
inline |
Returns the value of the current TagField.
Definition at line 143 of file generictagfield.h.
|
inline |
Returns the value of the current TagField.
Definition at line 152 of file generictagfield.h.
|
friend |
Definition at line 35 of file generictagfield.h.