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

The MatroskaTrackHeaderMaker class helps writing Matroska "TrackEntry"-elements storing track header information. More...

#include <matroskatrack.h>

Public Member Functions

void make (std::ostream &stream) const
 Saves the header for the track (specified when constructing the object) to the specified stream (makes a "TrackEntry"-element). More...
 
const MatroskaTracktrack () const
 Returns the number of bytes which will be written when making the track. More...
 
uint64 requiredSize () const
 Returns the number of bytes which will be written when calling make(). More...
 

Friends

class MatroskaTrack
 

Detailed Description

The MatroskaTrackHeaderMaker class helps writing Matroska "TrackEntry"-elements storing track header information.

An instance can be obtained using the MatroskaTrack::prepareMakingHeader() method.

Definition at line 13 of file matroskatrack.h.

Member Function Documentation

◆ make()

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

Saves the header for the track (specified when constructing the object) to the specified stream (makes a "TrackEntry"-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 599 of file matroskatrack.cpp.

◆ requiredSize()

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

Returns the number of bytes which will be written when calling make().

Definition at line 42 of file matroskatrack.h.

◆ track()

const MatroskaTrack & Media::MatroskaTrackHeaderMaker::track ( ) const
inline

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

Definition at line 34 of file matroskatrack.h.

Friends And Related Function Documentation

◆ MatroskaTrack

friend class MatroskaTrack
friend

Definition at line 15 of file matroskatrack.h.


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