10#ifndef ERS_ANY_ISSUE_H
11#define ERS_ANY_ISSUE_H
29 const std::string &
message =
"" )
38 const system_clock::time_point &
time,
41 const std::map<std::string, std::string> &
parameters,
virtual inheritance_type get_class_inheritance() const final
Get inheritance chain.
inheritance_type m_inheritance
friend class IssueFactory
AnyIssue(const std::string &type, const inheritance_type &chain, Severity severity, const ers::Context &context, const system_clock::time_point &time, const std::string &message, const std::vector< std::string > &qualifiers, const std::map< std::string, std::string > ¶meters, const ers::Issue *cause=0)
virtual void raise() const
throws a copy of this issue preserving the real issue type
virtual ers::Issue * clone() const
AnyIssue(const std::string &type, const ers::Context &context, const std::string &message="")
virtual const char * get_class_name() const
Get key for class (used for serialisation).
An abstract interface to access an Issue context.
Base class for any user define issue.
const Context & context() const
Context of the issue.
ers::Severity severity() const
severity of the issue
const std::vector< std::string > & qualifiers() const
return array of qualifiers
const std::string & message() const
General cause of the issue.
const string_map & parameters() const
return array of parameters
std::string time(const std::string &format="%Y-%b-%d %H:%M:%S", bool isUTC=false) const
string representation of local time of the issue
Issue(const Context &context, const std::string &message=std::string())
const Issue * cause() const
return the cause Issue of this Issue
std::list< std::string > inheritance_type