Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The MatroskaChapter class provides an implementation of AbstractAttachment for Matroska files. More...
#include <matroskachapter.h>
Public Member Functions | |
MatroskaChapter (EbmlElement *chapterAtomElement) | |
Constructs a new MatroskaChapter for the specified chapterAtomElement. | |
~MatroskaChapter () override | |
Destroys the chapter. | |
MatroskaChapter * | nestedChapter (std::size_t index) override |
Returns the nested chapter with the specified index. | |
const MatroskaChapter * | nestedChapter (std::size_t index) const override |
Returns the nested chapter with the specified index. | |
std::size_t | nestedChapterCount () const override |
Returns the number of nested chapters. | |
void | clear () override |
Resets the object to its initial state. | |
Public Member Functions inherited from TagParser::AbstractChapter | |
virtual | ~AbstractChapter () |
Destroys the chapter. | |
std::uint64_t | id () const |
Returns the chapter ID if known; otherwise returns zero. | |
const std::vector< LocaleAwareString > & | names () const |
Returns the chapter name. | |
CppUtilities::TimeSpan | startTime () const |
Returns the start time if known; otherwise returns a negative time span. | |
CppUtilities::TimeSpan | endTime () const |
Returns the end time if known; otherwise returns a negative time span. | |
const std::vector< std::uint64_t > & | tracks () const |
Returns a list of tracks on which the chapter applies. | |
bool | isHidden () const |
Returns whether the chapter is flagged as hidden. | |
bool | isEnabled () const |
Returns whether the chapter is flagged as enabled. | |
std::string | label () const |
Returns a label for the chapter. | |
void | parse (Diagnostics &diag, AbortableProgressFeedback &progress) |
Parses the chapter. | |
void | parseNested (Diagnostics &diag, AbortableProgressFeedback &progress) |
Parses the chapter and nested chapters recursively. | |
Protected Member Functions | |
void | internalParse (Diagnostics &diag, AbortableProgressFeedback &progress) override |
Parses the "ChapterAtom"-element which has been specified when constructing the object. | |
Protected Member Functions inherited from TagParser::AbstractChapter | |
AbstractChapter () | |
Constructs a new chapter. | |
Additional Inherited Members | |
Protected Attributes inherited from TagParser::AbstractChapter | |
std::uint64_t | m_id |
std::vector< LocaleAwareString > | m_names |
CppUtilities::TimeSpan | m_startTime |
CppUtilities::TimeSpan | m_endTime |
std::vector< std::uint64_t > | m_tracks |
std::unique_ptr< AbstractChapterPrivate > | m_p |
bool | m_hidden |
bool | m_enabled |
The MatroskaChapter class provides an implementation of AbstractAttachment for Matroska files.
Definition at line 12 of file matroskachapter.h.
TagParser::MatroskaChapter::MatroskaChapter | ( | EbmlElement * | chapterAtomElement | ) |
Constructs a new MatroskaChapter for the specified chapterAtomElement.
Definition at line 24 of file matroskachapter.cpp.
|
override |
Destroys the chapter.
Definition at line 32 of file matroskachapter.cpp.
|
overridevirtual |
Resets the object to its initial state.
Reimplemented from TagParser::AbstractChapter.
Definition at line 133 of file matroskachapter.cpp.
|
overrideprotectedvirtual |
Parses the "ChapterAtom"-element which has been specified when constructing the object.
Implements TagParser::AbstractChapter.
Definition at line 42 of file matroskachapter.cpp.
|
inlineoverridevirtual |
Returns the nested chapter with the specified index.
Reimplemented from TagParser::AbstractChapter.
Definition at line 35 of file matroskachapter.h.
|
inlineoverridevirtual |
Returns the nested chapter with the specified index.
Reimplemented from TagParser::AbstractChapter.
Definition at line 30 of file matroskachapter.h.
|
inlineoverridevirtual |
Returns the number of nested chapters.
Reimplemented from TagParser::AbstractChapter.
Definition at line 40 of file matroskachapter.h.