36 FunctionMap::const_iterator it =
m_creators.find(name);
52 FunctionMap::const_iterator it =
m_creators.find(name);
60 return (it->second)( context );
66 const std::list<std::string> & inheritance,
69 const system_clock::time_point & time,
70 const std::string & message,
71 const std::vector<std::string> & qualifiers,
73 const Issue * cause )
const
85 any -> m_inheritance = inheritance;
An abstract interface to access an Issue context.
Implements factory pattern for user defined Issues.
static IssueFactory & instance()
method to access singleton
void register_issue(const std::string &name, IssueCreator creator)
register an issue factory
Issue * create(const std::string &name, const Context &context) const
build an empty issue for a given name
Base class for any user define issue.
Severity m_severity
Issue's severity.
system_clock::time_point m_time
Time when issue was thrown.
std::unique_ptr< const Issue > m_cause
Issue that caused the current issue.
string_map m_values
List of user defined attributes.
std::string m_message
Issue's explanation text.
std::vector< std::string > m_qualifiers
List of associated qualifiers.
#define ERS_INTERNAL_DEBUG(level, message)
std::map< std::string, std::string > string_map