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;
57 std::string m_message;
58 std::string m_context;
143 return m_creationTime;
151 return m_level == other.m_level && m_message == other.m_message && m_context == other.m_context;
157 Diagnostics(std::initializer_list<DiagMessage> list);
209 #endif // TAGPARSER_DIAGNOSTICS_H
const char * levelName() const
Returns the string representation of the level().
DiagMessage(DiagLevel level, const std::string &message, const std::string &context)
Constructs a new DiagMessage.
constexpr auto worstDiagLevel
The worst diag level.
const ChronoUtilities::DateTime & creationTime() const
Returns the creation time (using GMT timezone).
DiagLevel level() const
Returns the level.
Diagnostics * operator->()
const std::string & context() const
Returns the context.
The DiagMessage class holds an information, warning or error gathered during parsing or making...
const std::string & message() const
Returns the message.
TAG_PARSER_EXPORT const char * diagLevelName(DiagLevel diagLevel)
Returns the string representation of the specified diagLevel.
bool operator==(const DiagMessage &other) const
Returns whether the current instance equals other.
DiagLevel & operator|=(DiagLevel &lhs, const DiagLevel &rhs)
Sets lhs to rhs if rhs is more critical than lhs and returns lhs.
Contains all classes and functions of the TagInfo library.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
The Diagnostics class is a container for DiagMessage.
The DiagPtr class is a leftover from development which should have been removed.
DiagLevel
Specifies the level of the diagnostic message.