Tag Parser  6.4.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
matroskaeditionentry.h
Go to the documentation of this file.
1 #ifndef MEDIA_MATROSKAEDITIONENTRY_H
2 #define MEDIA_MATROSKAEDITIONENTRY_H
3 
4 #include "./matroskachapter.h"
5 
6 namespace Media {
7 
8 class EbmlElement;
9 
11 {
12 public:
13  MatroskaEditionEntry(EbmlElement *editionEntryElement);
15 
16  EbmlElement *editionEntryElement() const;
17  uint64 id() const;
18  bool isHidden() const;
19  bool isDefault() const;
20  bool isOrdered() const;
21  std::string label() const;
22  const std::vector<std::unique_ptr<MatroskaChapter> > &chapters() const;
23 
24  void parse();
25  void parseNested();
26  void clear();
27 
28 private:
29  EbmlElement *m_editionEntryElement;
30  uint64 m_id;
31  bool m_hidden;
32  bool m_default;
33  bool m_ordered;
34  std::vector<std::unique_ptr<MatroskaChapter> > m_chapters;
35 };
36 
41 {
42  return m_editionEntryElement;
43 }
44 
48 inline uint64 MatroskaEditionEntry::id() const
49 {
50  return m_id;
51 }
52 
56 inline bool MatroskaEditionEntry::isHidden() const
57 {
58  return m_hidden;
59 }
60 
65 {
66  return m_default;
67 }
68 
73 {
74  return m_ordered;
75 }
76 
80 inline const std::vector<std::unique_ptr<MatroskaChapter> > &MatroskaEditionEntry::chapters() const
81 {
82  return m_chapters;
83 }
84 
85 } // namespace Media
86 
87 #endif // MEDIA_MATROSKAEDITIONENTRY_H
The MatroskaEditionEntry class provides a parser for edition entries in Matroska files.
The EbmlElement class helps to parse EBML files such as Matroska files.
Definition: ebmlelement.h:50
bool isOrdered() const
Returns whether the edition is ordered.
uint64 id() const
Returns the edition ID.
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
bool isHidden() const
Returns whether the edition is hidden.
bool isDefault() const
Returns whether the edition is flagged as default edition.
Contains all classes and functions of the TagInfo library.
Definition: exceptions.h:9
The StatusProvider class acts as a base class for objects providing status information.
EbmlElement * editionEntryElement() const
Returns the "EditionEntry"-element specified when constructing the object.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.