16 #if !defined(NAMESPACE_HEADER_GUARD_1357924680)
17 #define NAMESPACE_HEADER_GUARD_1357924680
30 XALAN_CPP_NAMESPACE_BEGIN
60 m_prefix(prefix, theManager),
61 m_uri(uri, theManager)
75 ThisType* theResult = theGuard.
get();
77 new (theResult) ThisType(prefix, uri, theManager);
85 m_prefix(other.m_prefix, theManager),
86 m_uri(other.m_uri, theManager)
159 const XalanDOMChar* uri,
164 m_uri.assign(uri, len);
170 return m_prefix.empty() && m_uri.empty();
189 return equals(m_prefix, theRHS.m_prefix) &&
190 equals(m_uri, theRHS.m_uri);
203 XALAN_CPP_NAMESPACE_END
207 #endif // NAMESPACE_HEADER_GUARD_1357924680
void setPrefix(const XalanDOMString &prefix)
Set the prefix for namespace.
Definition: NameSpace.hpp:111
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
NameSpace(MemoryManagerType &theManager)
Definition: NameSpace.hpp:43
void clear()
Definition: NameSpace.hpp:174
bool operator==(const NameSpace &theRHS) const
Equality operator.
Definition: NameSpace.hpp:187
void setURI(const XalanDOMString &uri)
Set the URI for namespace.
Definition: NameSpace.hpp:133
void setURI(const XalanDOMChar *uri, XalanDOMString::size_type len)
Set the URI for namespace.
Definition: NameSpace.hpp:158
A representation of a namespace.
Definition: NameSpace.hpp:38
~NameSpace()
Definition: NameSpace.hpp:90
static NameSpace * create(const XalanDOMString &prefix, const XalanDOMString &uri, MemoryManagerType &theManager)
Definition: NameSpace.hpp:66
NameSpace(const NameSpace &other, MemoryManagerType &theManager)
Definition: NameSpace.hpp:83
const XalanDOMString & getURI() const
Retrieve the URI for namespace.
Definition: NameSpace.hpp:122
Type * get() const
Definition: XalanMemMgrAutoPtr.hpp:164
Definition: XalanMemMgrAutoPtr.hpp:46
#define XALAN_USES_MEMORY_MANAGER(Type)
Definition: XalanMemoryManagement.hpp:468
NameSpace(const XalanDOMString &prefix, const XalanDOMString &uri, MemoryManagerType &theManager)
Construct a namespace for placement on the result tree namespace stack.
Definition: NameSpace.hpp:56
void setURI(const XalanDOMChar *uri)
Set the URI for namespace.
Definition: NameSpace.hpp:144
Definition: XalanDOMString.hpp:42
const XalanDOMString & getPrefix() const
Retrieve the prefix for namespace.
Definition: NameSpace.hpp:100
unsigned int size_type
Definition: XalanDOMString.hpp:53
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.
bool empty() const
Definition: NameSpace.hpp:168