Tag Parser
9.2.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
Go to the documentation of this file. 1 #ifndef TAG_PARSER_MATROSKATAGFIELD_H
2 #define TAG_PARSER_MATROSKATAGFIELD_H
4 #include "../generictagfield.h"
9 class MatroskaTagField;
19 static bool supportsNestedFields();
34 void make(std::ostream &stream)
const;
36 std::uint64_t requiredSize()
const;
43 std::string m_stringValue;
44 std::uint64_t m_simpleTagSize;
45 std::uint64_t m_totalSize;
46 std::vector<MatroskaTagFieldMaker> m_nestedMaker;
75 bool isAdditionalTypeInfoUsed()
const;
76 bool supportsNestedFields()
const;
78 static typename std::string fieldIdFromString(
const char *idString, std::size_t idStringSize = std::string::npos);
79 static std::string fieldIdToString(
const std::string &
id);
107 return idStringSize != std::string::npos ? std::string(idString, idStringSize) : std::string(idString);
122 inline void MatroskaTagField::reset()
128 #endif // TAG_PARSER_MATROSKATAGFIELD_H
Defines traits for the specified ImplementationType.
static std::string fieldIdToString(const std::string &id)
Returns the string representation for the specified id.
std::string IdentifierType
bool isAdditionalTypeInfoUsed() const
Returns whether the additional type info is used.
The MatroskaTagFieldMaker class helps making tag fields. It allows to calculate the required size.
The Diagnostics class is a container for DiagMessage.
Contains all classes and functions of the TagInfo library.
const IdentifierType & id() const
Returns the id of the current TagField.
The TagField class is used by FieldMapBasedTag to store the fields.
std::uint64_t requiredSize() const
Returns number of bytes which will be written when making the field.
bool supportsNestedFields() const
Returns whether nested fields are supported.
The EbmlElement class helps to parse EBML files such as Matroska files.
The MatroskaTagField class is used by MatroskaTag to store the fields.
const MatroskaTagField & field() const
Returns the associated field.
static std::string fieldIdFromString(const char *idString, std::size_t idStringSize=std::string::npos)
Converts the specified ID string representation to an actual ID.
The TagValue class wraps values of different types. It is meant to be assigned to a tag field.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.