7#include <c++utilities/conversion/stringbuilder.h>
8#include <c++utilities/conversion/stringconversion.h>
27 : m_editionEntryElement(editionEntryElement)
47 return argsToString(
"ID: ",
id());
60 static const string context(
"parsing \"EditionEntry\"-element");
65 entryChild->
parse(diag);
66 switch (entryChild->
id()) {
80 m_chapters.emplace_back(make_unique<MatroskaChapter>(entryChild));
84 "\"EditionEntry\"-element contains unknown child element \"" % entryChild->
idToString() +
"\" which will be ignored.", context);
101 chapter->parseNested(diag, progress);
111 m_hidden = m_default = m_ordered =
false;
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
void stopIfAborted() const
Throws an OperationAbortedException if aborted.
The Diagnostics class is a container for DiagMessage.
The EbmlElement class helps to parse EBML files such as Matroska files.
std::string idToString() const
Converts the specified EBML ID to a printable string.
std::uint64_t readUInteger()
Reads the content of the element as unsigned integer.
const IdentifierType & id() const
Returns the element ID.
ImplementationType * nextSibling()
Returns the next sibling of the element.
ImplementationType * firstChild()
Returns the first child of the element.
void parse(Diagnostics &diag)
Parses the header information of the element which is read from the related stream at the start offse...
void clear()
Resets the object to its initial state.
std::string label() const
Returns a label for the entry.
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
MatroskaEditionEntry(EbmlElement *editionEntryElement)
Constructs a new MatroskaEditionEntry for the specified editionEntryElement.
void parse(Diagnostics &diag)
Parses the "EditionEntry"-element specified when constructing the object.
void parseNested(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the "EditionEntry"-element specified when constructing the object.
~MatroskaEditionEntry()
Destroys the MatroskaEditionEntry.
Contains all classes and functions of the TagInfo library.