31 issue.
set_value(REFERENCE_VALUE_KEY,index) ;
34 std::ostringstream reference_stream ;
35 reference_stream << INDEX_REFERENCE_TYPE ;
37 reference_stream <<
"(name=" << entity_name <<
')' ;
39 issue.
set_value(REFERENCE_TYPE_KEY,reference_stream.str()) ;
49 set_range(*
this,index,min_index,max_index,entity_name) ;
50 std::ostringstream message_stream ;
51 message_stream <<
"invalid index: " ;
53 message_stream << entity_name <<
'=';
55 message_stream << index <<
" is not in range " << min_index <<
'-' << max_index ;
Source context for Issue.
static const char *const REFERENCE_TYPE_KEY
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
static const char *const INDEX_REFERENCE_TYPE
static const char *const RANGE_MIN_KEY
static void set_range(ers::Issue &issue, int64_t index, int64_t min_index, int64_t max_index, const char *entity_name=0)
static const char *const CLASS_NAME
static const char *const RANGE_MAX_KEY
virtual const char * get_class_name() const
Get key for class (used for serialisation)
static void check_range(const ers::Context &c, int64_t min, int64_t value, int64_t max, const char *entity_name=0)
enum ers::_severity_t severity_t