Tag Parser  8.2.0
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 TAG_PARSER_MATROSKAEDITIONENTRY_H
2 #define TAG_PARSER_MATROSKAEDITIONENTRY_H
3 
4 #include "./matroskachapter.h"
5 
6 namespace TagParser {
7 
8 class EbmlElement;
9 
11 public:
12  MatroskaEditionEntry(EbmlElement *editionEntryElement);
14 
15  EbmlElement *editionEntryElement() const;
16  uint64 id() const;
17  bool isHidden() const;
18  bool isDefault() const;
19  bool isOrdered() const;
20  std::string label() const;
21  const std::vector<std::unique_ptr<MatroskaChapter>> &chapters() const;
22 
23  void parse(Diagnostics &diag);
24  void parseNested(Diagnostics &diag);
25  void clear();
26 
27 private:
28  EbmlElement *m_editionEntryElement;
29  uint64 m_id;
30  bool m_hidden;
31  bool m_default;
32  bool m_ordered;
33  std::vector<std::unique_ptr<MatroskaChapter>> m_chapters;
34 };
35 
40 {
41  return m_editionEntryElement;
42 }
43 
47 inline uint64 MatroskaEditionEntry::id() const
48 {
49  return m_id;
50 }
51 
55 inline bool MatroskaEditionEntry::isHidden() const
56 {
57  return m_hidden;
58 }
59 
64 {
65  return m_default;
66 }
67 
72 {
73  return m_ordered;
74 }
75 
79 inline const std::vector<std::unique_ptr<MatroskaChapter>> &MatroskaEditionEntry::chapters() const
80 {
81  return m_chapters;
82 }
83 
84 } // namespace TagParser
85 
86 #endif // TAG_PARSER_MATROSKAEDITIONENTRY_H
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
uint64 id() const
Returns the edition ID.
bool isDefault() const
Returns whether the edition is flagged as default edition.
The EbmlElement class helps to parse EBML files such as Matroska files.
Definition: ebmlelement.h:31
bool isHidden() const
Returns whether the edition is hidden.
The MatroskaEditionEntry class provides a parser for edition entries in Matroska files.
bool isOrdered() const
Returns whether the edition is ordered.
EbmlElement * editionEntryElement() const
Returns the "EditionEntry"-element specified when constructing the object.
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 Diagnostics class is a container for DiagMessage.
Definition: diagnostics.h:156