Xalan-C++ API Reference 1.12.0
XPathConstructionContextDefault.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(XPATHCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680)
19#define XPATHCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
25
26
27
30
31
32
33// Base class header file...
35
36
37
38namespace XALAN_CPP_NAMESPACE {
39
40
41
42/**
43 *
44 * An default implementation of an abtract class which provides support for
45 * constructing the internal representation of an XPath.
46 *
47 */
49{
50public:
51
52 /*
53 * Construct an instance.
54 */
56
58 create(MemoryManager& theManager);
59
60 virtual
62
63
64 // These interfaces are inherited from XPathConstructionContext...
65 virtual void
67 eSource source,
69 const XalanDOMString& msg,
70 const Locator* locator,
71 const XalanNode* sourceNode);
72
73 virtual void
75 eSource source,
77 const XalanDOMString& msg,
78 const XalanNode* sourceNode);
79
80 virtual void
82
83 virtual const XalanDOMString&
85
86 virtual const XalanDOMString&
89 XalanDOMString::size_type theLength = XalanDOMString::npos);
90
91 virtual XalanDOMString&
93
94 virtual bool
96
97private:
98
99 XalanDOMStringPool m_stringPool;
100
101 XalanDOMStringCache m_stringCache;
102};
103
104
105
106}
107
108
109
110#endif // XPATHCONSTRUCTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680
#define XALAN_XPATH_EXPORT
#define XALAN_DEFAULT_MEMMGR
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
An default implementation of an abtract class which provides support for constructing the internal re...
virtual bool releaseCachedString(XalanDOMString &theString)
Return a cached string.
virtual void reset()
Reset the instance.
virtual XalanDOMString & getCachedString()
Get a cached string for temporary use.
virtual const XalanDOMString & getPooledString(const XalanDOMString &theString)
Get a pooled string given the source string.
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)
Function that is called when a problem event occurs.
static XPathConstructionContextDefault * create(MemoryManager &theManager)
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)
Function that is called when a problem event occurs.
virtual const XalanDOMString & getPooledString(const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)
Get a pooled string given the source character array.
XPathConstructionContextDefault(MemoryManager &theManager XALAN_DEFAULT_MEMMGR)