Classes | Enumerations | Functions
zorba::diagnostic Namespace Reference

Classes

class  QName
 A QName is the abstract base class for a QName. More...

Enumerations

enum  category {
  UNKNOWN_CATEGORY, XQUERY_CORE, XQUERY_FULL_TEXT, XQUERY_SCRIPTING,
  XQUERY_SERIALIZATION, XQUERY_UPDATE, XQUERY_USER_DEFINED, ZORBA_XQP,
  ZORBA_API, ZORBA_DDF, ZORBA_DEBUGGER, ZORBA_OS,
  ZORBA_SERIALIZATION, ZORBA_STORE, JSON_PARSER, JSON_SERIALIZATION
}
 An diagnostic::category is the category of error. More...
enum  kind { UNKNOWN_KIND, XQUERY_STATIC, XQUERY_DYNAMIC, XQUERY_TYPE }
 An diagnostic::kind is the kind of error. More...

Functions

bool operator!= (QName const &q1, QName const &q2)
 Compares two QNames for inequality.
bool operator!= (QName const &q1, char const *q2)
 Compares two QNames for inequality.
bool operator!= (char const *q1, QName const &q2)
 Compares two QNames for inequality.
template<class StringType >
bool operator!= (QName const &q1, StringType const &q2)
 Compares two QNames for inequality.
template<class StringType >
bool operator!= (StringType const &q1, QName const &q2)
 Compares two QNames for inequality.
ZORBA_DLL_PUBLIC std::ostream & operator<< (std::ostream &o, QName const &qn)
 Emits a QName to an ostream.
ZORBA_DLL_PUBLIC std::ostream & operator<< (std::ostream &o, category c)
 Emits the given diagnostic::category to the given ostream.
ZORBA_DLL_PUBLIC std::ostream & operator<< (std::ostream &o, kind k)
 Emits the given diagnostic::kind to the given ostream.
ZORBA_DLL_PUBLIC bool operator== (QName const &q1, QName const &q2)
 Compares two QNames for equality.
ZORBA_DLL_PUBLIC bool operator== (QName const &q1, char const *q2)
 Compares two QNames for equality.
bool operator== (char const *q1, QName const &q2)
 Compares two QNames for equality.
template<class StringType >
bool operator== (QName const &q1, StringType const &q2)
 Compares two QNames for equality.
template<class StringType >
bool operator== (StringType const &q1, QName const &q2)
 Compares two QNames for equality.

Enumeration Type Documentation

An diagnostic::category is the category of error.

Enumerator:
UNKNOWN_CATEGORY 
XQUERY_CORE 
XQUERY_FULL_TEXT 
XQUERY_SCRIPTING 
XQUERY_SERIALIZATION 
XQUERY_UPDATE 
XQUERY_USER_DEFINED 
ZORBA_XQP 
ZORBA_API 
ZORBA_DDF 
ZORBA_DEBUGGER 
ZORBA_OS 
ZORBA_SERIALIZATION 
ZORBA_STORE 
JSON_PARSER 
JSON_SERIALIZATION 

Definition at line 226 of file diagnostic.h.

An diagnostic::kind is the kind of error.

See: http://www.w3.org/TR/xquery-30/#id-kinds-of-errors

Enumerator:
UNKNOWN_KIND 
XQUERY_STATIC 

A static error is an error that must be detected during the static analysis phase.

A syntax error is an example of a static error.

XQUERY_DYNAMIC 

A dynamic error is an error that must be detected during the dynamic evaluation phase and may be detected during the static analysis phase.

Numeric overflow is an example of a dynamic error.

XQUERY_TYPE 

A type error may be raised during the static analysis phase or the dynamic evaluation phase.

During the static analysis phase, a type error occurs when the static type of an expression does not match the expected type of the context in which the expression occurs.

During the dynamic evaluation phase, a type error occurs when the dynamic type of a value does not match the expected type of the context in which the value occurs.

Definition at line 267 of file diagnostic.h.

Function Documentation

bool zorba::diagnostic::operator!= ( QName const &  q1,
QName const &  q2 
)
inline

Compares two QNames for inequality.

Parameters
q1The first QName.
q2The second QName.
Returns
Returns true only if either the QNames' namespaces or local names are not equal.

Definition at line 151 of file diagnostic.h.

bool zorba::diagnostic::operator!= ( QName const &  q1,
char const *  q2 
)
inline

Compares two QNames for inequality.

Parameters
q1The first QName.
q2The second QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
Returns
Returns true only if either the QNames' namespaces or local names are not equal.

Definition at line 167 of file diagnostic.h.

bool zorba::diagnostic::operator!= ( char const *  q1,
QName const &  q2 
)
inline

Compares two QNames for inequality.

Parameters
q1The first QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
q2The second QName.
Returns
Returns true only if either the QNames' namespaces or local names are not equal.

Definition at line 183 of file diagnostic.h.

template<class StringType >
bool zorba::diagnostic::operator!= ( QName const &  q1,
StringType const &  q2 
)
inline

Compares two QNames for inequality.

Template Parameters
StringTypeThe string type of q2.
Parameters
q1The first QName.
q2The second QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
Returns
Returns true only if the QNames are not equal.

Definition at line 200 of file diagnostic.h.

template<class StringType >
bool zorba::diagnostic::operator!= ( StringType const &  q1,
QName const &  q2 
)
inline

Compares two QNames for inequality.

Template Parameters
StringTypeThe string type of q1.
Parameters
q1The first QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
q2The second QName.
Returns
Returns true only if the QNames are not equal.

Definition at line 217 of file diagnostic.h.

ZORBA_DLL_PUBLIC std::ostream& zorba::diagnostic::operator<< ( std::ostream &  o,
QName const &  qn 
)

Emits a QName to an ostream.

Parameters
oThe ostream to emit to.
qnThe QName to emit.
Returns
Returns o.
ZORBA_DLL_PUBLIC std::ostream& zorba::diagnostic::operator<< ( std::ostream &  o,
category  c 
)

Emits the given diagnostic::category to the given ostream.

Parameters
oThe ostream to emit to.
cThe category to emit.
Returns
Returns o.
ZORBA_DLL_PUBLIC std::ostream& zorba::diagnostic::operator<< ( std::ostream &  o,
kind  k 
)

Emits the given diagnostic::kind to the given ostream.

Parameters
oThe ostream to emit to.
kThe kind to emit.
Returns
Returns o.
ZORBA_DLL_PUBLIC bool zorba::diagnostic::operator== ( QName const &  q1,
QName const &  q2 
)

Compares two QNames for equality.

Parameters
q1The first QName.
q2The second QName.
Returns
Returns true only if the QNames' namespaces and local names are equal.
ZORBA_DLL_PUBLIC bool zorba::diagnostic::operator== ( QName const &  q1,
char const *  q2 
)

Compares two QNames for equality.

Parameters
q1The first QName.
q2The second QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
Returns
Returns true only if the QNames are equal.
bool zorba::diagnostic::operator== ( char const *  q1,
QName const &  q2 
)
inline

Compares two QNames for equality.

Parameters
q1The first QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
q2The second QName.
Returns
Returns true only if the QNames are equal.

Definition at line 105 of file diagnostic.h.

template<class StringType >
bool zorba::diagnostic::operator== ( QName const &  q1,
StringType const &  q2 
)
inline

Compares two QNames for equality.

Template Parameters
StringTypeThe string type of q2.
Parameters
q1The first QName.
q2The second QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
Returns
Returns true only if the QNames are equal.

Definition at line 122 of file diagnostic.h.

template<class StringType >
bool zorba::diagnostic::operator== ( StringType const &  q1,
QName const &  q2 
)
inline

Compares two QNames for equality.

Template Parameters
StringTypeThe string type of q1.
Parameters
q1The first QName. It can be in Clark notation, {namespace}local-name, in which case the namespaces and local-names are compared; or as prefix:local-name in which case the prefixes and local-names are compared.
q2The second QName.
Returns
Returns true only if the QNames are equal.

Definition at line 139 of file diagnostic.h.

blog comments powered by Disqus