Tag Parser: matroska/matroskaeditionentry.h Source File

Tag Parser 12.5.3 C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags

Loading...
Searching...
No Matches
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
10 class TAG_PARSER_EXPORT MatroskaEditionEntry {
11public:
12 MatroskaEditionEntry(EbmlElement *editionEntryElement);
13 ~MatroskaEditionEntry();
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
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
39 inline EbmlElement *MatroskaEditionEntry::editionEntryElement() const
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
63 inline bool MatroskaEditionEntry::isDefault() const
64{
65 return m_default;
66}
67
71 inline bool MatroskaEditionEntry::isOrdered() const
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::AbortableProgressFeedback
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
Definition progressfeedback.h:186
TagParser::Diagnostics
The Diagnostics class is a container for DiagMessage.
Definition diagnostics.h:156
TagParser::EbmlElement
The EbmlElement class helps to parse EBML files such as Matroska files.
Definition ebmlelement.h:32
TagParser::MatroskaEditionEntry::clear
void clear()
Resets the object to its initial state.
Definition matroskaeditionentry.cpp:108
TagParser::MatroskaEditionEntry::editionEntryElement
EbmlElement * editionEntryElement() const
Returns the "EditionEntry"-element specified when constructing the object.
Definition matroskaeditionentry.h:39
TagParser::MatroskaEditionEntry::isHidden
bool isHidden() const
Returns whether the edition is hidden.
Definition matroskaeditionentry.h:55
TagParser::MatroskaEditionEntry::label
std::string label() const
Returns a label for the entry.
Definition matroskaeditionentry.cpp:45
TagParser::MatroskaEditionEntry::chapters
const std::vector< std::unique_ptr< MatroskaChapter > > & chapters() const
Returns the chapters the edition contains.
Definition matroskaeditionentry.h:79
TagParser::MatroskaEditionEntry::isOrdered
bool isOrdered() const
Returns whether the edition is ordered.
Definition matroskaeditionentry.h:71
TagParser::MatroskaEditionEntry::id
std::uint64_t id() const
Returns the edition ID.
Definition matroskaeditionentry.h:47
TagParser::MatroskaEditionEntry::MatroskaEditionEntry
MatroskaEditionEntry(EbmlElement *editionEntryElement)
Constructs a new MatroskaEditionEntry for the specified editionEntryElement.
Definition matroskaeditionentry.cpp:26
TagParser::MatroskaEditionEntry::isDefault
bool isDefault() const
Returns whether the edition is flagged as default edition.
Definition matroskaeditionentry.h:63
TagParser::MatroskaEditionEntry::parse
void parse(Diagnostics &diag)
Parses the "EditionEntry"-element specified when constructing the object.
Definition matroskaeditionentry.cpp:57
TagParser::MatroskaEditionEntry::parseNested
void parseNested(Diagnostics &diag, AbortableProgressFeedback &progress)
Parses the "EditionEntry"-element specified when constructing the object.
Definition matroskaeditionentry.cpp:96
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Definition global.h:14
matroskachapter.h
TagParser
Contains all classes and functions of the TagInfo library.
Definition aaccodebook.h:10