Tag Parser  9.1.3
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);
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
TagParser::MatroskaEditionEntry::isOrdered
bool isOrdered() const
Returns whether the edition is ordered.
Definition: matroskaeditionentry.h:71
TagParser::Mp4TagExtendedNameIds::label
const char * label
Definition: mp4ids.cpp:31
TagParser::Diagnostics
The Diagnostics class is a container for DiagMessage.
Definition: diagnostics.h:156
TagParser
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:10
TagParser::MatroskaEditionEntry::isHidden
bool isHidden() const
Returns whether the edition is hidden.
Definition: matroskaeditionentry.h:55
TagParser::MatroskaEditionEntry::id
std::uint64_t id() const
Returns the edition ID.
Definition: matroskaeditionentry.h:47
TagParser::EbmlElement
The EbmlElement class helps to parse EBML files such as Matroska files.
Definition: ebmlelement.h:31
TagParser::MatroskaEditionEntry::chapters
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
Definition: matroskaeditionentry.h:79
TagParser::MatroskaEditionEntry::isDefault
bool isDefault() const
Returns whether the edition is flagged as default edition.
Definition: matroskaeditionentry.h:63
TagParser::MatroskaEditionEntry
The MatroskaEditionEntry class provides a parser for edition entries in Matroska files.
Definition: matroskaeditionentry.h:10
TagParser::MatroskaEditionEntry::editionEntryElement
EbmlElement * editionEntryElement() const
Returns the "EditionEntry"-element specified when constructing the object.
Definition: matroskaeditionentry.h:39
matroskachapter.h
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.