1 #ifndef MEDIA_TAGTARGET_H 2 #define MEDIA_TAGTARGET_H 6 #include <c++utilities/conversion/types.h> 37 TagTarget(uint64 level = 0, IdContainerType tracks = IdContainerType(), IdContainerType chapters = IdContainerType(), IdContainerType editions = IdContainerType(), IdContainerType attachments = IdContainerType());
40 void setLevel(uint64 level);
41 const std::string &levelName()
const;
42 void setLevelName(
const std::string &levelName);
43 const IdContainerType &tracks()
const;
44 IdContainerType &tracks();
45 const IdContainerType &chapters()
const;
46 IdContainerType &chapters();
47 const IdContainerType &editions()
const;
48 IdContainerType &editions();
49 const IdContainerType &attachments()
const;
50 IdContainerType &attachments();
53 std::string toString(
const std::function<
TagTargetLevel(uint64)> &tagTargetMapping)
const;
59 std::string m_levelName;
60 IdContainerType m_tracks;
61 IdContainerType m_chapters;
62 IdContainerType m_editions;
63 IdContainerType m_attachments;
70 inline TagTarget::TagTarget(uint64 level, IdContainerType tracks, IdContainerType chapters, IdContainerType editions, IdContainerType attachments) :
75 m_attachments(attachments)
83 return m_level ? m_level : 50;
163 return m_attachments;
171 return m_attachments;
180 && m_levelName.empty()
182 && m_chapters.empty()
183 && m_editions.empty()
184 && m_attachments.empty();
197 m_attachments.clear();
207 && m_tracks == other.m_tracks
208 && m_chapters == other.m_chapters
209 && m_editions == other.m_editions
210 && m_attachments == other.m_attachments;
225 #endif // MEDIA_TAGTARGET_H
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.