Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
zorba::internal::SystemDiagnosticBase Class Reference

#include <zorba/internal/system_diagnostic.h>

Inheritance diagram for zorba::internal::SystemDiagnosticBase:
Inheritance graph
[legend]
Collaboration diagram for zorba::internal::SystemDiagnosticBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual diagnostic::category category () const
 Gets the category of this diagnostic.
virtual diagnostic::kind kind () const
 Gets the kind of this diagnostic.
virtual char const * message () const
 Gets the message of this diagnostic.
virtual diagnostic::QName const & qname () const =0
 Gets the QName for this diagnostic.

Static Public Member Functions

static Diagnostic const * find (char const *localname)
 Given a diagnostic's local-name, finds its corresponding Diagnostic object.

Protected Member Functions

virtual Diagnostic const * clone () const =0
virtual void destroy () const
 Destroys a Diagnostic.

Friends

class SystemDiagnostic
class ZorbaException

Member Function Documentation

virtual diagnostic::category zorba::Diagnostic::category ( ) const [virtual, inherited]

Gets the category of this diagnostic.

Returns:
Returns said category.

Reimplemented in zorba::internal::SystemDiagnostic, and zorba::UserError.

virtual Diagnostic const* zorba::Diagnostic::clone ( ) const [protected, pure virtual, inherited]
virtual void zorba::Diagnostic::destroy ( ) const [protected, virtual, inherited]

Destroys a Diagnostic.

This is the only way a Diagnostic should be destroyed.

Reimplemented in zorba::internal::SystemDiagnostic.

static Diagnostic const* zorba::internal::SystemDiagnosticBase::find ( char const *  localname) [inline, static]

Given a diagnostic's local-name, finds its corresponding Diagnostic object.

Parameters:
localnameThe local-name.
Returns:
Returns the corresponding Diagnostic object or NULL if not found.

Definition at line 41 of file system_diagnostic.h.

virtual diagnostic::kind zorba::Diagnostic::kind ( ) const [virtual, inherited]

Gets the kind of this diagnostic.

Returns:
Returns said kind.

Reimplemented in zorba::internal::SystemDiagnostic.

Examples:
errors.cpp, external_functions.cpp, and simple.cpp.
virtual char const* zorba::Diagnostic::message ( ) const [virtual, inherited]

Gets the message of this diagnostic.

Returns:
Returns said message.
virtual diagnostic::QName const& zorba::Diagnostic::qname ( ) const [pure virtual, inherited]

Gets the QName for this diagnostic.

Returns:
Returns said QName.

Implemented in zorba::internal::SystemDiagnostic, and zorba::UserError.

Referenced by zorba::operator==().


Friends And Related Function Documentation

friend class SystemDiagnostic [friend]

Definition at line 58 of file system_diagnostic.h.

friend class ZorbaException [friend, inherited]

Definition at line 360 of file diagnostic.h.


The documentation for this class was generated from the following file:
blog comments powered by Disqus