Tag Parser  6.4.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Public Member Functions | Friends | List of all members
Media::MatroskaAttachmentMaker Class Reference

The MatroskaAttachmentMaker class helps writing Matroska "AttachedFile"-elements which contain an attachment. More...

#include <matroskaattachment.h>

Public Member Functions

void make (std::ostream &stream) const
 Saves the attachment (specified when constructing the object) to the specified stream (makes an "AttachedFile"-element). More...
 
const MatroskaAttachmentattachment () const
 Returns the associated attachment. More...
 
uint64 requiredSize () const
 Returns the number of bytes which will be written when making the attachment. More...
 
void bufferCurrentAttachments ()
 

Friends

class MatroskaAttachment
 

Detailed Description

The MatroskaAttachmentMaker class helps writing Matroska "AttachedFile"-elements which contain an attachment.

An instance can be obtained using the MatroskaAttachment::prepareMaking() method.

Definition at line 11 of file matroskaattachment.h.

Member Function Documentation

◆ attachment()

const MatroskaAttachment & Media::MatroskaAttachmentMaker::attachment ( ) const
inline

Returns the associated attachment.

Definition at line 32 of file matroskaattachment.h.

◆ bufferCurrentAttachments()

void Media::MatroskaAttachmentMaker::bufferCurrentAttachments ( )

Definition at line 178 of file matroskaattachment.cpp.

◆ make()

void Media::MatroskaAttachmentMaker::make ( std::ostream &  stream) const

Saves the attachment (specified when constructing the object) to the specified stream (makes an "AttachedFile"-element).

Exceptions
Throwsstd::ios_base::failure when an IO error occurs.
ThrowsAssumes the data is already validated and thus does NOT throw Media::Failure or a derived exception.

Definition at line 143 of file matroskaattachment.cpp.

◆ requiredSize()

uint64 Media::MatroskaAttachmentMaker::requiredSize ( ) const
inline

Returns the number of bytes which will be written when making the attachment.

Definition at line 40 of file matroskaattachment.h.

Friends And Related Function Documentation

◆ MatroskaAttachment

friend class MatroskaAttachment
friend

Definition at line 13 of file matroskaattachment.h.


The documentation for this class was generated from the following files: