Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanQNameByReference.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680)
17 #define XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
26 // Base class header file...
28 
29 
30 
31 XALAN_CPP_NAMESPACE_BEGIN
32 
33 
34 
36 {
37 public:
38 
42  explicit
44 
54  const XalanDOMString& theNamespace,
55  const XalanDOMString& theLocalPart);
56 
64  XalanQNameByReference(const XalanDOMString& theLocalPart);
65 
72  XalanQNameByReference(const XalanQName& theQName);
73 
74  virtual
76 
82  virtual const XalanDOMString&
83  getLocalPart() const;
84 
90  void
91  setLocalPart(const XalanDOMString& theLocalPart)
92  {
93  m_localpart = &theLocalPart;
94  }
95 
101  virtual const XalanDOMString&
102  getNamespace() const;
103 
109  void
110  setNamespace(const XalanDOMString& theNamespace)
111  {
112  m_namespace = &theNamespace;
113  }
114 
118  void
120  {
121  m_namespace = &s_emptyString;
122  m_localpart = &s_emptyString;
123  }
124 
125 private:
126 
127  // OK, we said reference, but using pointers
128  // allows for copy and assignment semantics.
129  const XalanDOMString* m_namespace;
130 
131  const XalanDOMString* m_localpart;
132 };
133 
134 
135 
136 template<>
138 {
139 };
140 
141 
142 
143 XALAN_CPP_NAMESPACE_END
144 
145 
146 
147 #endif // XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680

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