zorba::internal::SystemDiagnosticBase

#include <zorba/internal/system_diagnostic.h>

Inherited from: zorba::Diagnostic

Private Types

std::map< char const *, Diagnostic const *, ztd::less< char const * > >

map_type

Friend Classes

friend class

SystemDiagnostic

friend class

ZorbaException

Public Static Functions

Diagnostic const *

find(char const *localname)

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

Private Static Functions

map_type &

get_map()

Private Functions

SystemDiagnosticBase(char const *localname)

Public Functions

diagnostic::kind

kind() const

Gets the kind of this diagnostic.

char const *

message() const

Gets the message of this diagnostic.

diagnostic::QName const &

qname() const =0

Gets the QName for this diagnostic.

Protected Functions

Diagnostic const *

clone() const =0

void

destroy() const

Destroys a Diagnostic.

Private Types

map_type

std::map< char const *, Diagnostic const *, ztd::less< char const * > > map_type

Friend Classes

SystemDiagnostic

friend class SystemDiagnostic

ZorbaException

friend class ZorbaException

Public Static Functions

find

Diagnostic const * find(char const *localname)

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

Parameters

localname The local-name.

Returns

Returns the corresponding Diagnostic object or NULL if not found.

Private Static Functions

get_map

map_type & get_map()

Private Functions

SystemDiagnosticBase

 SystemDiagnosticBase(char const *localname)

Public Functions

kind

diagnostic::kind kind() const

Gets the kind of this diagnostic.

Returns

Returns said kind.

message

char const * message() const

Gets the message of this diagnostic.

Returns

Returns said message.

qname

diagnostic::QName const & qname() const =0

Gets the QName for this diagnostic.

Returns

Returns said QName.

Protected Functions

clone

Diagnostic const * clone() const =0

destroy

void destroy() const

Destroys a Diagnostic.

This is the only way a Diagnostic should be destroyed.