Tag Parser
7.0.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
#include <matroskacues.h>
Public Member Functions | |
MatroskaCuePositionUpdater () | |
Creates a new MatroskaCuePositionUpdater. More... | |
EbmlElement * | cuesElement () const |
Returns the "Cues"-element specified when calling the parse() method. More... | |
uint64 | totalSize () const |
Returns how many bytes will be written when calling the make() method. More... | |
void | parse (EbmlElement *cuesElement, Diagnostics &diag) |
Parses the specified cuesElement. More... | |
bool | updateOffsets (uint64 originalOffset, uint64 newOffset) |
Sets the offset of the entries with the specified originalOffset to newOffset. More... | |
bool | updateRelativeOffsets (uint64 referenceOffset, uint64 originalRelativeOffset, uint64 newRelativeOffset) |
Sets the relative offset of the entries with the specified originalRelativeOffset and the specified referenceOffset to newRelativeOffset. More... | |
void | make (std::ostream &stream, Diagnostics &diag) |
Writes the previously parsed "Cues"-element with updates positions to the specified stream. More... | |
void | clear () |
Resets the object to its initial state. More... | |
Definition at line 64 of file matroskacues.h.
|
inline |
Creates a new MatroskaCuePositionUpdater.
The parse() method should be called to do further initialization.
Definition at line 91 of file matroskacues.h.
|
inline |
Resets the object to its initial state.
Parsing results and updates are cleared.
Definition at line 109 of file matroskacues.h.
|
inline |
Returns the "Cues"-element specified when calling the parse() method.
Returns nullptr if no "Cues"-element is set.
Definition at line 101 of file matroskacues.h.
void TagParser::MatroskaCuePositionUpdater::make | ( | std::ostream & | stream, |
Diagnostics & | diag | ||
) |
Writes the previously parsed "Cues"-element with updates positions to the specified stream.
Definition at line 243 of file matroskacues.cpp.
void TagParser::MatroskaCuePositionUpdater::parse | ( | EbmlElement * | cuesElement, |
Diagnostics & | diag | ||
) |
Parses the specified cuesElement.
Definition at line 52 of file matroskacues.cpp.
uint64 TagParser::MatroskaCuePositionUpdater::totalSize | ( | ) | const |
Returns how many bytes will be written when calling the make() method.
Definition at line 38 of file matroskacues.cpp.
bool TagParser::MatroskaCuePositionUpdater::updateOffsets | ( | uint64 | originalOffset, |
uint64 | newOffset | ||
) |
Sets the offset of the entries with the specified originalOffset to newOffset.
Definition at line 172 of file matroskacues.cpp.
bool TagParser::MatroskaCuePositionUpdater::updateRelativeOffsets | ( | uint64 | referenceOffset, |
uint64 | originalRelativeOffset, | ||
uint64 | newRelativeOffset | ||
) |
Sets the relative offset of the entries with the specified originalRelativeOffset and the specified referenceOffset to newRelativeOffset.
Definition at line 191 of file matroskacues.cpp.