Tag Parser 12.3.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The MatroskaAttachmentMaker class helps writing Matroska "AttachedFile"-elements which contain an attachment. More...
#include <matroskaattachment.h>
Public Member Functions | |
void | make (std::ostream &stream, Diagnostics &diag) const |
Saves the attachment (specified when constructing the object) to the specified stream (makes an "AttachedFile"-element). | |
const MatroskaAttachment & | attachment () const |
Returns the associated attachment. | |
std::uint64_t | requiredSize () const |
Returns the number of bytes which will be written when making the attachment. | |
void | bufferCurrentAttachments (Diagnostics &diag) |
Friends | |
class | MatroskaAttachment |
The MatroskaAttachmentMaker class helps writing Matroska "AttachedFile"-elements which contain an attachment.
An instance can be obtained using the MatroskaAttachment::prepareMaking() method.
|
inline |
Returns the associated attachment.
Definition at line 31 of file matroskaattachment.h.
void TagParser::MatroskaAttachmentMaker::bufferCurrentAttachments | ( | Diagnostics & | diag | ) |
Definition at line 183 of file matroskaattachment.cpp.
void TagParser::MatroskaAttachmentMaker::make | ( | std::ostream & | stream, |
Diagnostics & | diag ) const |
Saves the attachment (specified when constructing the object) to the specified stream (makes an "AttachedFile"-element).
Throws | std::ios_base::failure when an IO error occurs. |
Throws | Assumes the data is already validated and thus does NOT throw TagParser::Failure or a derived exception. |
Definition at line 147 of file matroskaattachment.cpp.
|
inline |
Returns the number of bytes which will be written when making the attachment.
Definition at line 39 of file matroskaattachment.h.
|
friend |
Definition at line 12 of file matroskaattachment.h.