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

The Id3v2TagMaker class helps writing ID3v2 tags. More...

#include <id3v2tag.h>

Public Member Functions

void make (std::ostream &stream, uint32 padding)
 Saves the tag (specified when constructing the object) to the specified stream. More...
 
const Id3v2Tagtag () const
 Returns the associated tag. More...
 
uint64 requiredSize () const
 Returns the number of bytes which will be written when making the tag. More...
 

Friends

class Id3v2Tag
 

Detailed Description

The Id3v2TagMaker class helps writing ID3v2 tags.

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

Definition at line 20 of file id3v2tag.h.

Member Function Documentation

◆ make()

void Media::Id3v2TagMaker::make ( std::ostream &  stream,
uint32  padding 
)

Saves the tag (specified when constructing the object) to the specified stream.

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 419 of file id3v2tag.cpp.

◆ requiredSize()

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

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

Remarks
Excludes padding!

Definition at line 50 of file id3v2tag.h.

◆ tag()

const Id3v2Tag & Media::Id3v2TagMaker::tag ( ) const
inline

Returns the associated tag.

Definition at line 41 of file id3v2tag.h.

Friends And Related Function Documentation

◆ Id3v2Tag

friend class Id3v2Tag
friend

Definition at line 22 of file id3v2tag.h.


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