Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The DiagMessage class holds an information, warning or error gathered during parsing or making. More...
#include <diagnostics.h>
Public Member Functions | |
DiagMessage (DiagLevel level, const std::string &message, const std::string &context) | |
Constructs a new DiagMessage. | |
DiagMessage (DiagLevel level, std::string &&message, const std::string &context) | |
Constructs a new DiagMessage. | |
DiagMessage (DiagLevel level, const std::string &message, std::string &&context) | |
Constructs a new DiagMessage. | |
DiagMessage (DiagLevel level, std::string &&message, std::string &&context) | |
Constructs a new DiagMessage. | |
DiagLevel | level () const |
Returns the level. | |
std::string_view | levelName () const |
Returns the string representation of the level(). | |
const std::string & | message () const |
Returns the message. | |
const std::string & | context () const |
Returns the context. | |
const CppUtilities::DateTime & | creationTime () const |
Returns the creation time (using GMT timezone). | |
bool | operator== (const DiagMessage &other) const |
Returns whether the current instance equals other. | |
Static Public Member Functions | |
static std::string | formatList (const std::vector< std::string > &values) |
Concatenates the specified string values to a list. | |
The DiagMessage class holds an information, warning or error gathered during parsing or making.
Definition at line 41 of file diagnostics.h.
|
inline |
Constructs a new DiagMessage.
Definition at line 67 of file diagnostics.h.
|
inline |
Constructs a new DiagMessage.
Definition at line 78 of file diagnostics.h.
|
inline |
Constructs a new DiagMessage.
Definition at line 89 of file diagnostics.h.
|
inline |
Constructs a new DiagMessage.
Definition at line 100 of file diagnostics.h.
|
inline |
Returns the context.
Definition at line 135 of file diagnostics.h.
|
inline |
Returns the creation time (using GMT timezone).
Definition at line 143 of file diagnostics.h.
|
static |
Concatenates the specified string values to a list.
Definition at line 69 of file diagnostics.cpp.
|
inline |
Returns the level.
Definition at line 111 of file diagnostics.h.
|
inline |
Returns the string representation of the level().
Definition at line 119 of file diagnostics.h.
|
inline |
Returns the message.
Definition at line 127 of file diagnostics.h.
|
inline |
Returns whether the current instance equals other.
Everything but the creationTime() is considered.
Definition at line 151 of file diagnostics.h.