5 #include "../diagnostics.h" 7 #include <c++utilities/conversion/stringbuilder.h> 8 #include <c++utilities/conversion/stringconversion.h> 26 MatroskaEditionEntry::MatroskaEditionEntry(
EbmlElement *editionEntryElement)
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 ingored.", context);
100 chapter->parseNested(diag);
110 m_hidden = m_default = m_ordered =
false;
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
ImplementationType * nextSibling()
Returns the next sibling of the element.
ImplementationType * firstChild()
Returns the first child of the element.
void parse(Diagnostics &diag)
Parses the "EditionEntry"-element specified when constructing the object.
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.
void parse(Diagnostics &diag)
Parses the header information of the element which is read from the related stream at the start offse...
~MatroskaEditionEntry()
Destroys the MatroskaEditionEntry.
uint64 readUInteger()
Reads the content of the element as unsigned integer.
void parseNested(Diagnostics &diag)
Parses the "EditionEntry"-element specified when constructing the object.
std::string label() const
Returns a label for the entry.
void clear()
Resets the object to its initial state.
const IdentifierType & id() const
Returns the element ID.
Contains all classes and functions of the TagInfo library.
The Diagnostics class is a container for DiagMessage.