Public Member Functions | Friends
zorba::internal::VariableQName< StringType > Class Template Reference

A VariableQName is-an diagnostic::QName that has a variable namespace, prefix, and local-name. More...

#include <zorba/internal/qname.h>

Inheritance diagram for zorba::internal::VariableQName< StringType >:
Inheritance graph
[legend]
Collaboration diagram for zorba::internal::VariableQName< StringType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

char const * localname () const
 Gets this QName's local name.
char const * ns () const
 Gets this QName's namespace URI.
char const * prefix () const
 Gets this QName's prefix.
 VariableQName (char const *ns, char const *prefix, char const *localname)
 Constructs a VariableQName.
 VariableQName (serialization::Archiver &)

Friends

void serialization::operator& (serialization::Archiver &, VariableQName &)

Detailed Description

template<typename StringType>
class zorba::internal::VariableQName< StringType >

A VariableQName is-an diagnostic::QName that has a variable namespace, prefix, and local-name.

Template Parameters:
StringTypeThe type to use to store the namespace, prefix, and local-name. Note that this can be either a string type or char const*. If the latter, then it must be guaranteed that the pointed-to C strings will exist for the entire lifetime of this object.

Definition at line 84 of file qname.h.


Constructor & Destructor Documentation

template<typename StringType>
zorba::internal::VariableQName< StringType >::VariableQName ( char const *  ns,
char const *  prefix,
char const *  localname 
) [inline]

Constructs a VariableQName.

Definition at line 90 of file qname.h.

template<typename StringType>
zorba::internal::VariableQName< StringType >::VariableQName ( serialization::Archiver &  ) [inline]

Definition at line 107 of file qname.h.


Member Function Documentation

template<typename StringType>
char const* zorba::internal::VariableQName< StringType >::localname ( ) const [inline, virtual]

Gets this QName's local name.

Returns:
Returns said local name.

Implements zorba::diagnostic::QName.

Definition at line 98 of file qname.h.

template<typename StringType>
char const* zorba::internal::VariableQName< StringType >::ns ( ) const [inline, virtual]

Gets this QName's namespace URI.

Returns:
Returns said URI.

Implements zorba::diagnostic::QName.

Definition at line 96 of file qname.h.

template<typename StringType>
char const* zorba::internal::VariableQName< StringType >::prefix ( ) const [inline, virtual]

Gets this QName's prefix.

Returns:
Returns said prefix.

Implements zorba::diagnostic::QName.

Definition at line 97 of file qname.h.


Friends And Related Function Documentation

template<typename StringType>
void serialization::operator& ( serialization::Archiver &  ,
VariableQName< StringType > &   
) [friend]

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