15#include "ers/Assertion.h"
50 setup(condition_text,msg,constant_expression);
57 m_value_table[ASSERT_CONDITION_KEY] = *condition_text ;
59 set_value(EXIT_VALUE_KEY,EX_SOFTWARE);
60 transience( ! constant_expression);
61 finish_setup(build_message(condition_text,msg,constant_expression));
77 std::ostringstream m ;
78 m << MESSAGE_ELEMENTS[0] << condition_text << MESSAGE_ELEMENTS[1] << msg ;
79 if (constant_expression) {
80 m << MESSAGE_ELEMENTS[2] ;
This Issue represents a basic assertion.
static const char *const MESSAGE_ELEMENTS[]
static const char *const CLASS_NAME
static const char *const ASSERT_CONDITION_KEY
void setup(const char *condition, const std::string &message, bool constant_expression)
virtual const char * get_class_name() const
Get key for class (used for serialisation)
virtual std::string build_message(const char *condition_text, const std::string &msg, bool constant_expression=false)
Source context for Issue.
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
enum ers::_severity_t severity_t