9 #include <stk_util/environment/ReportHandler.hpp> 10 #include <stk_util/environment/RuntimeWarning.hpp> 30 unsigned int max_warnings)
64 const char * aggregate,
73 : m_messageCode(message_code)
82 catch (std::exception &)
89 : m_messageCode(message_code)
98 catch (std::exception &)
105 : m_messageCode(message_code)
114 catch (std::exception &)
void add_deferred_message(int message_type, MessageId message_id, size_t throttle_cutoff, int throttle_group, const char *header, const char *aggegrate)
Function add_deferred_message adds a message to the deferred message queue.
void reset_warning_count()
Function reset_warning_count sets the accumulated warning count to zero.
void set_max_warning_count(unsigned int max_warnings)
Function set_max_messages sets the maximum number of warning before no more warning will be displayed...
RuntimeWarningSymmetric(MessageCode &message_code=MessageCode::s_defaultMessageCode)
Creates a new RuntimeWarning instance, setting the message code.
void reset_message_count(unsigned message_type)
Member function reset_message_count ...
std::ostringstream message
Stream to receive message header content.
RuntimeWarningDeferred(const MessageCode &message_code)
Creates a new RuntimeWarningDeferred instance, setting the message code.
Class MessageCode declares a message identifier and throttle characteristics for a message...
Throttle m_throttle
Throttle characteristics.
std::ostringstream message
Stream to receive message content.
void report_deferred_warning(const char *message, const char *aggregate, const MessageCode &message_code)
Member function report_deferred_warning ...
void report_warning(const char *message, const MessageCode &message_code)
Member function report_warning ...
std::ostringstream aggregate
Stream to receive message aggregate content.
~RuntimeWarningSymmetric()
Destroys a RuntimeWarningSymmetric instance.
std::ostringstream message
Stream to receive message content.
unsigned get_max_message_count(unsigned message_type)
Member function get_max_message_count ...
void report_message(const char *message, unsigned message_type, const MessageCode &message_code)
Member function report_message ...
void report_symmetric_warning(const char *message, const MessageCode &message_code)
Function report_symmetric_warning sends a warning message to the reporter.
unsigned get_message_count(unsigned message_type)
Member function get_message_count ...
~RuntimeWarningDeferred()
Destroys a RuntimeWarning instance.
size_t m_cutoff
Maximum number to display.
unsigned get_max_warning_count()
Function set_max_messages sets the maximum number of warning and doomed messages displayed before the...
void set_max_message_count(unsigned message_type, unsigned max_count)
Member function set_max_message_count ...
RuntimeWarningAdHoc(MessageCode &message_code=MessageCode::s_defaultMessageCode)
Creates a new RuntimeWarningAdHoc instance, setting the message code.
MessageId m_id
Message identifier.
int m_group
Throttle group of message.
unsigned get_warning_count()
Function get_warning_count returns the accumulated warning count.
~RuntimeWarningAdHoc()
Destroys a RuntimeWarningAdHoc instance.