1 #ifndef TAGPARSER_DIAGNOSTICS_H 2 #define TAGPARSER_DIAGNOSTICS_H 6 #include <c++utilities/chrono/datetime.h> 49 const std::string &
message()
const;
50 const std::string &
context()
const;
56 std::string m_message;
57 std::string m_context;
115 return m_creationTime;
120 return m_level == other.m_level && m_message == other.m_message && m_context == other.m_context;
126 Diagnostics(std::initializer_list<DiagMessage> list);
170 #endif // TAGPARSER_DIAGNOSTICS_H
const char * levelName() const
DiagMessage(DiagLevel level, const std::string &message, const std::string &context)
constexpr auto worstDiagLevel
const ChronoUtilities::DateTime & creationTime() const
Diagnostics * operator->()
const std::string & context() const
const std::string & message() const
TAG_PARSER_EXPORT const char * diagLevelName(DiagLevel diagLevel)
bool operator==(const DiagMessage &other) const
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.
DiagLevel
Specifies the level of the diagnostic message.