Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Public Types | Public Member Functions | Public Attributes | List of all members
XPathConstructionContext Class Referenceabstract
Inheritance diagram for XPathConstructionContext:
StylesheetConstructionContext XPathConstructionContextDefault StylesheetConstructionContextDefault

Classes

class  GetAndReleaseCachedString
 

Public Types

typedef GetAndReleaseCachedString GetCachedString
 

Public Member Functions

 XPathConstructionContext (MemoryManagerType &theManager)
 
virtual ~XPathConstructionContext ()
 
virtual void reset ()=0
 Reset the instance. More...
 
virtual const XalanDOMStringgetPooledString (const XalanDOMString &theString)=0
 Get a pooled string given the source string. More...
 
virtual const XalanDOMStringgetPooledString (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
 Get a pooled string given the source character array. More...
 
virtual XalanDOMStringgetCachedString ()=0
 Get a cached string for temporary use. More...
 
virtual bool releaseCachedString (XalanDOMString &theString)=0
 Return a cached string. More...
 
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
 

Public Attributes

MemoryManagerTypem_memoryManager
 

Detailed Description

Author
David N. Bertoni

Member Typedef Documentation

Constructor & Destructor Documentation

XPathConstructionContext::XPathConstructionContext ( MemoryManagerType theManager)
virtual XPathConstructionContext::~XPathConstructionContext ( )
virtual

Member Function Documentation

virtual void XPathConstructionContext::error ( const XalanDOMString msg,
const XalanNode sourceNode,
const Locator *  locator 
) const
pure virtual
virtual XalanDOMString& XPathConstructionContext::getCachedString ( )
pure virtual

Get a cached string for temporary use.

Returns
A reference to the string

Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.

MemoryManagerType& XPathConstructionContext::getMemoryManager ( )
virtual const XalanDOMString& XPathConstructionContext::getPooledString ( const XalanDOMString theString)
pure 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.

Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.

virtual const XalanDOMString& XPathConstructionContext::getPooledString ( const XalanDOMChar *  theString,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
pure 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.

Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.

virtual bool XPathConstructionContext::releaseCachedString ( XalanDOMString theString)
pure virtual

Return a cached string.

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

Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.

virtual void XPathConstructionContext::reset ( )
pure virtual

Reset the instance.

Any existing objects created by the instance will be destroyed.

Implemented in StylesheetConstructionContextDefault, StylesheetConstructionContext, and XPathConstructionContextDefault.

virtual void XPathConstructionContext::warn ( const XalanDOMString msg,
const XalanNode sourceNode,
const Locator *  locator 
) const
pure virtual

Member Data Documentation

MemoryManagerType& XPathConstructionContext::m_memoryManager

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