Tag Parser  10.0.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 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  std::uint64_t 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, AbortableProgressFeedback &progress);
25  void clear();
26 
27 private:
28  EbmlElement *m_editionEntryElement;
29  std::uint64_t 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 std::uint64_t 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
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
The Diagnostics class is a container for DiagMessage.
Definition: diagnostics.h:156
The EbmlElement class helps to parse EBML files such as Matroska files.
Definition: ebmlelement.h:32
The MatroskaEditionEntry class provides a parser for edition entries in Matroska files.
EbmlElement * editionEntryElement() const
Returns the "EditionEntry"-element specified when constructing the object.
bool isHidden() const
Returns whether the edition is hidden.
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
bool isOrdered() const
Returns whether the edition is ordered.
std::uint64_t id() const
Returns the edition ID.
bool isDefault() const
Returns whether the edition is flagged as default edition.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:10