Tag Parser
9.1.3
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
Go to the documentation of this file.
18 AbstractChapter::AbstractChapter()
41 if (!
names().empty()) {
42 ss <<
", name: \"" <<
names().front() <<
"\"";
45 ss <<
", start: " <<
startTime().toString(TimeSpanOutputFormat::WithMeasures);
virtual std::size_t nestedChapterCount() const
Returns the number of nested chapters.
virtual void clear()
Resets the object to its initial state.
The Diagnostics class is a container for DiagMessage.
Contains all classes and functions of the TagInfo library.
CppUtilities::TimeSpan m_startTime
std::vector< LocaleAwareString > m_names
void parseNested(Diagnostics &diag)
Parses the chapter and nested chapters recursively.
std::vector< std::uint64_t > m_tracks
virtual ~AbstractChapter()
Destroys the chapter.
std::uint64_t id() const
Returns the chapter ID if known; otherwise returns zero.
CppUtilities::TimeSpan m_endTime
const std::vector< LocaleAwareString > & names() const
Returns the chapter name.
virtual AbstractChapter * nestedChapter(std::size_t index)
Returns the nested chapter with the specified index.
std::string label() const
Returns a label for the chapter.
virtual void internalParse(Diagnostics &diag)=0
Internally called to parse the chapter.
void parse(Diagnostics &diag)
Parses the chapter.
CppUtilities::TimeSpan startTime() const
Returns the start time if known; otherwise returns a negative time span.