Tag Parser  7.1.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
flactooggmappingheader.h
Go to the documentation of this file.
1 #ifndef TAG_PARSER_FLACIDENTIFICATIONHEADER_H
2 #define TAG_PARSER_FLACIDENTIFICATIONHEADER_H
3 
4 #include "./flacmetadata.h"
5 
6 namespace TagParser {
7 
8 class OggIterator;
9 
11 public:
13 
14  void parseHeader(OggIterator &iterator);
15 
16  byte majorVersion() const;
17  byte minorVersion() const;
18  uint16 headerCount() const;
19  const FlacMetaDataBlockStreamInfo &streamInfo() const;
20 
21 private:
22  byte m_majorVersion;
23  byte m_minorVersion;
24  uint16 m_headerCount;
25  FlacMetaDataBlockStreamInfo m_streamInfo;
26 };
27 
32  : m_majorVersion(0)
33  , m_minorVersion(0)
34  , m_headerCount(0)
35 {
36 }
37 
42 {
43  return m_majorVersion;
44 }
45 
50 {
51  return m_minorVersion;
52 }
53 
58 {
59  return m_headerCount;
60 }
61 
66 {
67  return m_streamInfo;
68 }
69 
70 } // namespace TagParser
71 
72 #endif // TAG_PARSER_FLACIDENTIFICATIONHEADER_H
uint16 headerCount() const
Returns the number of header (non-audio) packets, not including this one.
FlacToOggMappingHeader()
Constructs a new FLAC identification header.
The FlacToOggMappingHeader class is a FLAC-to-Ogg mapping header parser.
The OggIterator class helps iterating through all segments of an OGG bitstream.
Definition: oggiterator.h:11
const FlacMetaDataBlockStreamInfo & streamInfo() const
Returns the stream info.
byte minorVersion() const
Returns the version for the mapping (which should be 0 currently).
byte majorVersion() const
Returns the major version for the mapping (which should be 1 currently).
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:9
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
The FlacMetaDataBlockStreamInfo class is a FLAC "METADATA_BLOCK_STREAMINFO" parser.
Definition: flacmetadata.h:110