10#include "ers/Precondition.h"
43 this->
setup(condition,msg,constant_expression);
58 std::ostringstream m ;
59 m <<
"Precondition '" << condition_text <<
"' failed: " << msg ;
60 if (constant_expression) {
61 m <<
" (this condition is constant)" ;
This Issue represents a basic assertion.
void setup(const char *condition, const std::string &message, bool constant_expression)
Source context for Issue.
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
virtual std::string build_message(const char *condition_text, const std::string &message, bool constant_expression=false)
virtual const char * get_class_name() const
static const char *const PRECONDITION_CLASS
enum ers::_severity_t severity_t