26 , m_doctypeReadVersion(0)
28 , m_headerParsed(false)
30 , m_tracksParsed(false)
31 , m_tracksAltered(false)
32 , m_chaptersParsed(false)
33 , m_attachmentsParsed(false)
34 , m_startOffset(startOffset)
36 , m_reader(BinaryReader(m_stream))
37 , m_writer(BinaryWriter(m_stream))
190 CPP_UTILITIES_UNUSED(diag);
204 CPP_UTILITIES_UNUSED(diag);
205 CPP_UTILITIES_UNUSED(progress);
219 CPP_UTILITIES_UNUSED(diag);
220 CPP_UTILITIES_UNUSED(progress);
234 CPP_UTILITIES_UNUSED(diag);
235 CPP_UTILITIES_UNUSED(progress);
249 CPP_UTILITIES_UNUSED(diag);
250 CPP_UTILITIES_UNUSED(progress);
264 CPP_UTILITIES_UNUSED(diag);
265 CPP_UTILITIES_UNUSED(progress);
279 CPP_UTILITIES_UNUSED(diag);
280 CPP_UTILITIES_UNUSED(progress);
306 CPP_UTILITIES_UNUSED(index);
335 CPP_UTILITIES_UNUSED(
tag);
364 CPP_UTILITIES_UNUSED(diag);
375 CPP_UTILITIES_UNUSED(index);
403 CPP_UTILITIES_UNUSED(
track);
431 CPP_UTILITIES_UNUSED(index);
460 CPP_UTILITIES_UNUSED(index);
485 static const auto empty = std::vector<std::string>();
486 return m_p ? m_p->muxingApps : empty;
494 return p()->muxingApps;
502 static const auto empty = std::vector<std::string>();
503 return m_p ? m_p->writingApps : empty;
511 return p()->writingApps;
544std::unique_ptr<AbstractContainerPrivate> &AbstractContainer::p()
547 m_p = std::make_unique<AbstractContainerPrivate>();
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
The AbstractAttachment class parses and stores attachment information.
The AbstractChapter class parses chapter information.
virtual bool removeTrack(AbstractTrack *track)
Removes the specified track to the container.
bool areAttachmentsParsed() const
Returns an indication whether the attachments have been parsed yet.
virtual void removeAllTags()
Removes all tags attached to the container.
virtual void internalMakeFile(Diagnostics &diag, AbortableProgressFeedback &progress)
Internally called to make the file.
virtual void internalParseAttachments(Diagnostics &diag, AbortableProgressFeedback &progress)
Internally called to parse the attachments.
std::vector< std::string > m_titles
void parseTracks(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the tracks of the file if not parsed yet.
virtual Tag * tag(std::size_t index)
Returns the tag with the specified index.
virtual ~AbstractContainer()
Destroys the container.
bool areTracksParsed() const
Returns an indication whether the tracks have been parsed yet.
virtual std::size_t segmentCount() const
Returns the number of segments.
virtual std::size_t attachmentCount() const
Returns the number of attachments the container holds.
virtual bool supportsTrackModifications() const
Returns whether the implementation supports adding or removing of tracks.
const std::vector< std::string > & writingApplications() const
Returns the writing applications specified as meta-data.
virtual AbstractChapter * chapter(std::size_t index)
Returns the chapter with the specified index.
const std::vector< std::string > & muxingApplications() const
Returns the muxing applications specified as meta-data.
bool isHeaderParsed() const
Returns an indication whether the header has been parsed yet.
virtual void reset()
Discards all parsing results.
void makeFile(Diagnostics &diag, AbortableProgressFeedback &progress)
Rewrites the file to apply changed tag information.
void parseChapters(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the chapters of the file if not parsed yet.
virtual void internalParseChapters(Diagnostics &diag, AbortableProgressFeedback &progress)
Internally called to parse the chapters.
virtual AbstractAttachment * createAttachment()
Creates and returns a new attachment.
virtual bool removeTag(Tag *tag)
Removes the specified tag from the container.
void parseHeader(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the header if not parsed yet.
virtual ElementPosition determineTagPosition(Diagnostics &diag) const
Determines the position of the tags inside the file.
std::uint64_t m_doctypeReadVersion
virtual AbstractTrack * track(std::size_t index)
Returns the track with the specified index.
std::uint64_t m_readVersion
virtual ElementPosition determineIndexPosition(Diagnostics &diag) const
Determines the position of the index.
virtual Tag * createTag(const TagTarget &target=TagTarget())
Creates and returns a tag for the specified target.
virtual void internalParseTags(Diagnostics &diag, AbortableProgressFeedback &progress)
Internally called to parse the tags.
virtual std::size_t tagCount() const
Returns the number of tags attached to the container.
bool areTagsParsed() const
Returns an indication whether the tags have been parsed yet.
bool areChaptersParsed() const
Returns an indication whether the chapters have been parsed yet.
virtual std::size_t trackCount() const
Returns the number of tracks the container holds.
virtual bool supportsTitle() const
Returns whether the title property is supported.
void parseAttachments(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the attachments of the file if not parsed yet.
std::uint64_t m_doctypeVersion
virtual std::size_t chapterCount() const
Returns the number of chapters the container holds.
AbstractContainer(std::iostream &stream, std::uint64_t startOffset)
Constructs a new container for the specified file stream at the specified startOffset.
virtual void internalParseHeader(Diagnostics &diag, AbortableProgressFeedback &progress)
Internally called to parse the header.
void parseTags(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the tag information if not parsed yet.
std::uint32_t m_timeScale
virtual AbstractAttachment * attachment(std::size_t index)
Returns the attachment with the specified index.
virtual void removeAllTracks()
Removes all tracks from the container.
virtual void internalParseTracks(Diagnostics &diag, AbortableProgressFeedback &progress)
Internally called to parse the tracks.
The AbstractTrack class parses and stores technical information about video, audio and other kinds of...
The Diagnostics class is a container for DiagMessage.
This exception is thrown when the an operation is invoked that has not been implemented yet.
The TagTarget class specifies the target of a tag.
The Tag class is used to store, read and write tag information.
Contains all classes and functions of the TagInfo library.
The AbstractContainerPrivate struct contains private fields of the AbstractContainer class.
std::vector< std::string > muxingApps
std::vector< std::string > writingApps