Tag Parser 12.5.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
6namespace TagParser {
7
8class EbmlElement;
9
11public:
14
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);
25 void clear();
26
27private:
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
47inline std::uint64_t MatroskaEditionEntry::id() const
48{
49 return m_id;
50}
51
56{
57 return m_hidden;
58}
59
64{
65 return m_default;
66}
67
72{
73 return m_ordered;
74}
75
79inline 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.
The EbmlElement class helps to parse EBML files such as Matroska files.
Definition ebmlelement.h:32
void clear()
Resets the object to its initial state.
EbmlElement * editionEntryElement() const
Returns the "EditionEntry"-element specified when constructing the object.
bool isHidden() const
Returns whether the edition is hidden.
std::string label() const
Returns a label for the entry.
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.
MatroskaEditionEntry(EbmlElement *editionEntryElement)
Constructs a new MatroskaEditionEntry for the specified editionEntryElement.
bool isDefault() const
Returns whether the edition is flagged as default edition.
void parse(Diagnostics &diag)
Parses the "EditionEntry"-element specified when constructing the object.
void parseNested(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the "EditionEntry"-element specified when constructing the object.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Definition global.h:14
Contains all classes and functions of the TagInfo library.
Definition aaccodebook.h:10