Tag Parser  6.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
oggstream.h
Go to the documentation of this file.
1 #ifndef MEDIA_OGGSTREAM_H
2 #define MEDIA_OGGSTREAM_H
3 
4 #include "./oggpage.h"
5 
6 #include "../abstracttrack.h"
7 
8 namespace Media {
9 
10 class OggContainer;
11 class OggIterator;
12 
14 {
15  friend class OggContainer;
16 
17 public:
18  OggStream(OggContainer &container, std::vector<OggPage>::size_type startPage);
19  ~OggStream();
20 
21  TrackType type() const;
22  std::size_t startPage() const;
23 
24 protected:
25  void internalParseHeader();
26 
27 private:
28  std::size_t m_startPage;
29  OggContainer &m_container;
30  uint32 m_currentSequenceNumber;
31 };
32 
33 inline std::size_t OggStream::startPage() const
34 {
35  return m_startPage;
36 }
37 
38 inline TrackType OggStream::type() const
39 {
40  return TrackType::OggStream;
41 }
42 
43 }
44 
45 #endif // MEDIA_OGGSTREAM_H
TrackType
Specifies the track type.
Definition: abstracttrack.h:28
The AbstractTrack class parses and stores technical information about video, audio and other kinds of...
Definition: abstracttrack.h:40
std::size_t startPage() const
Definition: oggstream.h:33
Implementation of Media::AbstractTrack for OGG streams.
Definition: oggstream.h:13
Implementation of Media::AbstractContainer for OGG files.
Definition: oggcontainer.h:127
Contains all classes and functions of the TagInfo library.
Definition: exceptions.h:9
TrackType type() const
Returns the type of the track if known; otherwise returns TrackType::Unspecified. ...
Definition: oggstream.h:38
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.