44 CPP_UTILITIES_UNUSED(progress)
47 static const string context(
"parsing \"ChapterAtom\"-element");
51 chapterAtomChild->parse(diag);
52 switch (chapterAtomChild->id()) {
54 m_id = chapterAtomChild->readUInteger();
62 m_endTime =
TimeSpan(
static_cast<std::int64_t
>(chapterAtomChild->readUInteger() / 100u));
65 m_hidden = chapterAtomChild->readUInteger() == 1;
68 m_enabled = chapterAtomChild->readUInteger() == 1;
76 chapterTrackElement = chapterTrackElement->
nextSibling()) {
77 chapterTrackElement->parse(diag);
78 switch (chapterTrackElement->id()) {
80 m_tracks.emplace_back(chapterTrackElement->readUInteger());
84 "\"ChapterTrack\"-element contains unknown child element \"" % chapterAtomChild->idToString() +
"\". It will be ignored.",
92 chapterDisplayElement = chapterDisplayElement->
nextSibling()) {
93 chapterDisplayElement->parse(diag);
94 switch (chapterDisplayElement->id()) {
97 m_names.back().assign(chapterDisplayElement->readString());
100 "\"ChapterDisplay\"-element contains multiple \"ChapString\"-elements. Surplus occurrences will be ignored.", context);
118 m_nestedChapters.emplace_back(make_unique<MatroskaChapter>(chapterAtomChild));
122 "\"ChapterAtom\"-element contains unknown child element \"" % chapterAtomChild->idToString() +
"\". It will be ignored.", context);
127 if (name.locale().empty()) {