Tag Parser
9.1.2
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
Go to the documentation of this file. 1 #ifndef TAGPARSER_DIAGNOSTICS_H
2 #define TAGPARSER_DIAGNOSTICS_H
6 #include <c++utilities/chrono/datetime.h>
50 const std::string &
message()
const;
51 const std::string &
context()
const;
55 static std::string
formatList(
const std::vector<std::string> &values);
59 std::string m_message;
60 std::string m_context;
61 CppUtilities::DateTime m_creationTime;
145 return m_creationTime;
153 return m_level == other.m_level && m_message == other.m_message && m_context == other.m_context;
159 Diagnostics(std::initializer_list<DiagMessage> list);
175 #endif // TAGPARSER_DIAGNOSTICS_H
const TAG_PARSER_EXPORT char * diagLevelName(DiagLevel diagLevel)
Returns the string representation of the specified diagLevel.
static std::string formatList(const std::vector< std::string > &values)
Concatenates the specified string values to a list.
const std::string & context() const
Returns the context.
DiagLevel
Specifies the level of the diagnostic message.
The Diagnostics class is a container for DiagMessage.
Contains all classes and functions of the TagInfo library.
DiagLevel level() const
Returns the level.
bool operator==(const DiagMessage &other) const
Returns whether the current instance equals other.
const char * levelName() const
Returns the string representation of the level().
const CppUtilities::DateTime & creationTime() const
Returns the creation time (using GMT timezone).
constexpr auto worstDiagLevel
The worst diag level.
The DiagMessage class holds an information, warning or error gathered during parsing or making.
DiagMessage(DiagLevel level, const std::string &message, const std::string &context)
Constructs a new DiagMessage.
constexpr DiagLevel & operator|=(DiagLevel &lhs, const DiagLevel &rhs)
Sets lhs to rhs if rhs is more critical than lhs and returns lhs.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
const std::string & message() const
Returns the message.