45 if (!
names().empty()) {
46 ss <<
", name: \"" <<
names().front() <<
"\"";
49 ss <<
", start: " <<
startTime().toString(TimeSpanOutputFormat::WithMeasures);
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
void stopIfAborted() const
Throws an OperationAbortedException if aborted.
void parseNested(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the chapter and nested chapters recursively.
virtual std::size_t nestedChapterCount() const
Returns the number of nested chapters.
const std::vector< LocaleAwareString > & names() const
Returns the chapter name.
std::vector< std::uint64_t > m_tracks
virtual void internalParse(Diagnostics &diag, AbortableProgressFeedback &progress)=0
Internally called to parse the chapter.
CppUtilities::TimeSpan m_endTime
CppUtilities::TimeSpan m_startTime
void parse(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the chapter.
virtual void clear()
Resets the object to its initial state.
std::string label() const
Returns a label for the chapter.
CppUtilities::TimeSpan startTime() const
Returns the start time if known; otherwise returns a negative time span.
virtual AbstractChapter * nestedChapter(std::size_t index)
Returns the nested chapter with the specified index.
std::uint64_t id() const
Returns the chapter ID if known; otherwise returns zero.
AbstractChapter()
Constructs a new chapter.
virtual ~AbstractChapter()
Destroys the chapter.
std::vector< LocaleAwareString > m_names
The Diagnostics class is a container for DiagMessage.
Contains all classes and functions of the TagInfo library.
The AbstractChapterPrivate struct contains private fields of the AbstractChapter class.