17 #ifndef ZORBA_INTERNAL_SYSTEM_DIAGNOSTIC_H
18 #define ZORBA_INTERNAL_SYSTEM_DIAGNOSTIC_H
42 map_type
const &m = get_map();
43 map_type::const_iterator
const i = m.find( localname );
44 return i != m.end() ? i->second : 0;
48 typedef std::map<char const*,Diagnostic const*,ztd::less<char const*> >
51 static map_type& get_map();
54 get_map()[ localname ] =
this;
67 template<
class QNameType>
A QName is the abstract base class for a QName.
static Diagnostic const * find(char const *localname)
Given a diagnostic's local-name, finds its corresponding Diagnostic object.
kind
An diagnostic::kind is the kind of error.
Diagnostic const * clone() const
SystemDiagnostic(char const *localname)
Constructs a SystemDiagnostic.
void destroy() const
Destroys a Diagnostic.
A Diagnostic is the base class for all Zorba diagnostics (errors and warnings).
zorba::diagnostic::QName const & qname() const
Gets the QName for this diagnostic.
zorba::diagnostic::category category() const
Gets the category of this diagnostic.
zorba::diagnostic::kind kind() const
Gets the kind of this diagnostic.
category
An diagnostic::category is the category of error.