Tag Parser
7.0.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
#include <abstractattachment.h>
Public Member Functions | |
FileDataBlock (const std::string &path, Diagnostics &diag) | |
Constructs a new FileDataBlock with the specified path. More... | |
const MediaFileInfo * | fileInfo () const |
![]() | |
StreamDataBlock (const std::function< std::istream &()> &stream, std::istream::off_type startOffset=0, std::ios_base::seekdir startDir=std::ios_base::beg, std::istream::off_type endOffset=0, std::ios_base::seekdir endDir=std::ios_base::end) | |
std::istream & | stream () const |
Returns the associated stream. More... | |
std::istream::pos_type | startOffset () const |
Returns the absolute start offset of the data block in the stream. More... | |
std::istream::pos_type | endOffset () const |
Returns the absolute end offset of the data block in the stream. More... | |
std::istream::pos_type | size () const |
Returns the size of the data block. More... | |
const std::unique_ptr< char[]> & | buffer () const |
Returns the data buffered via makeBuffer(). More... | |
void | makeBuffer () const |
Buffers the data block. More... | |
void | discardBuffer () |
Discards buffered data. More... | |
void | copyTo (std::ostream &stream) const |
Copies the data to the specified stream. More... | |
Additional Inherited Members | |
![]() | |
StreamDataBlock () | |
Constructs a new StreamDataBlock. More... | |
![]() | |
std::function< std::istream &()> | m_stream |
std::istream::pos_type | m_startOffset |
std::istream::pos_type | m_endOffset |
std::unique_ptr< char[]> | m_buffer |
Definition at line 89 of file abstractattachment.h.
TagParser::FileDataBlock::FileDataBlock | ( | const std::string & | path, |
Diagnostics & | diag | ||
) |
Constructs a new FileDataBlock with the specified path.
Opens a file stream with the specified path.
Throws | ios_base::failure when an IO error occurs. |
Definition at line 97 of file abstractattachment.cpp.
|
inline |
Definition at line 98 of file abstractattachment.h.