10#include "ers/InvalidReferenceIssue.h"
33 const void* p,
const std::string& msg,
47 char buffer[
sizeof(
void* ) + 1];
48 snprintf( buffer,
sizeof( buffer ),
"%p", p );
54 const void* p,
const char* ptr_name,
59 message <<
"pointer '" << ptr_name <<
"' is null";
Source context for Issue.
static const char *const REFERENCE_C_PTR_TYPE
void pointer(const void *p)
static const char *const REFERENCE_NAME_KEY
static const char *const CLASS_NAME
static const char *const REFERENCE_VALUE_KEY
virtual const char * get_class_name() const
Get key for class (used for serialisation).
static const char *const REFERENCE_TYPE_KEY
static void check_reference(const Context &context, severity_t s, const void *pointer, const char *ptr_name, responsibility_t r)
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
responsibility_t responsibility() const
get the responsability level of the issue
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
severity_t severity() const
severity_t of the issue
const std::string & message() const
Message.
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
Issue(const Context &context, severity_t s)
Constructor for subclasses.
string_map_type m_value_table
Optional properties.
enum ers::_responsibility_t responsibility_t
enum ers::_severity_t severity_t