Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Member Functions | Static Public Member Functions | List of all members
XPathConstructionContextDefault Class Reference

An default implementation of an abtract class which provides support for constructing the internal representation of an XPath. More...

Inheritance diagram for XPathConstructionContextDefault:
XPathConstructionContext

Public Member Functions

 XPathConstructionContextDefault (MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR)
 
virtual ~XPathConstructionContextDefault ()
 
virtual void reset ()
 Reset the instance. More...
 
virtual const XalanDOMStringgetPooledString (const XalanDOMString &theString)
 Get a pooled string given the source string. More...
 
virtual const XalanDOMStringgetPooledString (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Get a pooled string given the source character array. More...
 
virtual XalanDOMStringgetCachedString ()
 Get a cached string for temporary use. More...
 
virtual bool releaseCachedString (XalanDOMString &theString)
 Return a cached string. More...
 
virtual void error (const XalanDOMString &msg, const XalanNode *sourceNode, const LocatorType *locator) const
 
virtual void warn (const XalanDOMString &msg, const XalanNode *sourceNode, const LocatorType *locator) const
 
- Public Member Functions inherited from XPathConstructionContext
 XPathConstructionContext (MemoryManagerType &theManager)
 
virtual ~XPathConstructionContext ()
 
MemoryManagerTypegetMemoryManager ()
 
virtual void error (const XalanDOMString &msg, const XalanNode *sourceNode, const Locator *locator) const =0
 
virtual void warn (const XalanDOMString &msg, const XalanNode *sourceNode, const Locator *locator) const =0
 

Static Public Member Functions

static
XPathConstructionContextDefault
create (MemoryManagerType &theManager)
 

Additional Inherited Members

- Public Types inherited from XPathConstructionContext
typedef GetAndReleaseCachedString GetCachedString
 
- Public Attributes inherited from XPathConstructionContext
MemoryManagerTypem_memoryManager
 

Detailed Description

An default implementation of an abtract class which provides support for constructing the internal representation of an XPath.

Author
David N. Bertoni

Constructor & Destructor Documentation

XPathConstructionContextDefault::XPathConstructionContextDefault ( MemoryManagerType &theManager  XALAN_DEFAULT_MEMMGR)
virtual XPathConstructionContextDefault::~XPathConstructionContextDefault ( )
virtual

Member Function Documentation

static XPathConstructionContextDefault* XPathConstructionContextDefault::create ( MemoryManagerType theManager)
static
virtual void XPathConstructionContextDefault::error ( const XalanDOMString msg,
const XalanNode sourceNode,
const LocatorType locator 
) const
virtual
virtual XalanDOMString& XPathConstructionContextDefault::getCachedString ( )
virtual

Get a cached string for temporary use.

Returns
A reference to the string

Implements XPathConstructionContext.

virtual const XalanDOMString& XPathConstructionContextDefault::getPooledString ( const XalanDOMString theString)
virtual

Get a pooled string given the source string.

If the string already exists in the pool, no copy will be made. If not, a copy will be made and kept for later use.

Parameters
theStringThe source string
Returns
a const reference to a pooled string.

Implements XPathConstructionContext.

virtual const XalanDOMString& XPathConstructionContextDefault::getPooledString ( const XalanDOMChar *  theString,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Get a pooled string given the source character array.

If the string already exists in the pool, no copy will be made. If not, a copy will be made and kept for later use.

Parameters
theStringThe source character array
theLengthThe length of the character array
Returns
a const reference to a pooled string.

Implements XPathConstructionContext.

virtual bool XPathConstructionContextDefault::releaseCachedString ( XalanDOMString theString)
virtual

Return a cached string.

Parameters
theStringThe string to release.
Returns
true if the string was released successfully.

Implements XPathConstructionContext.

virtual void XPathConstructionContextDefault::reset ( )
virtual

Reset the instance.

Any existing objects created by the instance will be destroyed.

Implements XPathConstructionContext.

virtual void XPathConstructionContextDefault::warn ( const XalanDOMString msg,
const XalanNode sourceNode,
const LocatorType locator 
) const
virtual

The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo