Tag Parser
7.0.3
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
#include <tagtarget.h>
Public Types | |
typedef uint64 | IdType |
typedef std::vector< IdType > | IdContainerType |
Public Member Functions | |
TagTarget (uint64 level=0, IdContainerType tracks=IdContainerType(), IdContainerType chapters=IdContainerType(), IdContainerType editions=IdContainerType(), IdContainerType attachments=IdContainerType()) | |
Constructs a new TagTarget with the specified level, track, chapter, edition and attachment. More... | |
uint64 | level () const |
Returns the level. More... | |
void | setLevel (uint64 level) |
Sets the level. More... | |
const std::string & | levelName () const |
Returns the level name. More... | |
void | setLevelName (const std::string &levelName) |
Sets the level name. More... | |
const IdContainerType & | tracks () const |
Returns the tracks. More... | |
IdContainerType & | tracks () |
Returns the tracks. More... | |
const IdContainerType & | chapters () const |
Returns the chapters. More... | |
IdContainerType & | chapters () |
Returns the chapters. More... | |
const IdContainerType & | editions () const |
Returns the editions. More... | |
IdContainerType & | editions () |
Returns the editions. More... | |
const IdContainerType & | attachments () const |
Returns the attachments. More... | |
IdContainerType & | attachments () |
Returns the attachments. More... | |
bool | isEmpty () const |
Returns an indication whether the target is empty. More... | |
void | clear () |
Clears the TagTarget. More... | |
std::string | toString (const std::function< TagTargetLevel(uint64)> &tagTargetMapping) const |
Returns the string representation of the current instance. More... | |
std::string | toString (TagTargetLevel tagTargetLevel) const |
Returns the string representation of the current instance. More... | |
bool | operator== (const TagTarget &other) const |
Returns whether the tag targets are equal. More... | |
Definition at line 21 of file tagtarget.h.
typedef std::vector<IdType> TagParser::TagTarget::IdContainerType |
Definition at line 24 of file tagtarget.h.
typedef uint64 TagParser::TagTarget::IdType |
Definition at line 23 of file tagtarget.h.
|
inline |
Constructs a new TagTarget with the specified level, track, chapter, edition and attachment.
Definition at line 60 of file tagtarget.h.
|
inline |
Returns the attachments.
Definition at line 152 of file tagtarget.h.
|
inline |
Returns the attachments.
Definition at line 160 of file tagtarget.h.
|
inline |
Returns the chapters.
Definition at line 120 of file tagtarget.h.
|
inline |
Returns the chapters.
Definition at line 128 of file tagtarget.h.
|
inline |
Clears the TagTarget.
Definition at line 176 of file tagtarget.h.
|
inline |
Returns the editions.
Definition at line 136 of file tagtarget.h.
|
inline |
Returns the editions.
Definition at line 144 of file tagtarget.h.
|
inline |
Returns an indication whether the target is empty.
Definition at line 168 of file tagtarget.h.
|
inline |
Returns the level.
Definition at line 72 of file tagtarget.h.
|
inline |
Returns the level name.
Definition at line 88 of file tagtarget.h.
|
inline |
Returns whether the tag targets are equal.
Definition at line 190 of file tagtarget.h.
|
inline |
Sets the level.
Definition at line 80 of file tagtarget.h.
|
inline |
Sets the level name.
Definition at line 96 of file tagtarget.h.
|
inline |
Returns the string representation of the current instance.
Definition at line 201 of file tagtarget.h.
string TagParser::TagTarget::toString | ( | TagTargetLevel | tagTargetLevel | ) | const |
Returns the string representation of the current instance.
Definition at line 60 of file tagtarget.cpp.
|
inline |
Returns the tracks.
Definition at line 104 of file tagtarget.h.
|
inline |
Returns the tracks.
Definition at line 112 of file tagtarget.h.