blob: 2406d3c55ea4232271ce7242041674c80a0aa8ab [file] [log] [blame]
<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
</BODY>
<!-- Generated by Doxygen 1.2.8.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>AttributeVectorEntry.hpp</h1><a href="AttributeVectorEntry_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
00006 <font class="comment"> * You may obtain a copy of the License at</font>
00007 <font class="comment"> *</font>
00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
00009 <font class="comment"> *</font>
00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
00014 <font class="comment"> * limitations under the License.</font>
00015 <font class="comment"> */</font>
00016 <font class="preprocessor">#if !defined(ATTRIBUTEVECTORENTRY_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="AttributeVectorEntry_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define ATTRIBUTEVECTORENTRY_HEADER_GUARD_1357924680</font>
00018 <font class="preprocessor"></font>
00019
00020
00021 <font class="comment">// Base include file. Must be first.</font>
00022 <font class="preprocessor">#include &lt;<a class="code" href="PlatformSupportDefinitions_8hpp.html">xalanc/PlatformSupport/PlatformSupportDefinitions.hpp</a>&gt;</font>
00023 <font class="preprocessor">#include &lt;<a class="code" href="DOMStringHelper_8hpp.html">xalanc/PlatformSupport/DOMStringHelper.hpp</a>&gt;</font>
00024
00025
00026
00027 <font class="preprocessor">#include &lt;<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>&gt;</font>
00028
00029 <font class="preprocessor">#include &lt;<a class="code" href="XalanMemMgrAutoPtr_8hpp.html">xalanc/Include/XalanMemMgrAutoPtr.hpp</a>&gt;</font>
00030
00031
00032 XALAN_CPP_NAMESPACE_BEGIN
00033
00034
00035
<a name="l00036"></a><a class="code" href="classAttributeVectorEntry.html">00036</a> <font class="keyword">class </font>XALAN_PLATFORMSUPPORT_EXPORT <a class="code" href="classAttributeVectorEntry.html">AttributeVectorEntry</a>
00037 {
00038 <font class="keyword">public</font>:
00039
<a name="l00040"></a><a class="code" href="classAttributeVectorEntry.html#s0">00040</a> <font class="keyword">typedef</font> XalanVector&lt;XMLCh&gt; XMLChVectorType;
00041
<a name="l00042"></a><a class="code" href="classAttributeVectorEntry.html#a0">00042</a> <a class="code" href="classAttributeVectorEntry.html#a0">AttributeVectorEntry</a>(
00043 <font class="keyword">const</font> XMLChVectorType&amp; theName,
00044 <font class="keyword">const</font> XMLChVectorType&amp; theValue,
00045 <font class="keyword">const</font> XMLChVectorType&amp; theType,
00046 MemoryManagerType&amp; theManager) :
00047 m_Name(theName,theManager),
00048 m_Value(theValue,theManager),
00049 m_Type(theType,theManager)
00050 {
00051 }
00052
<a name="l00053"></a><a class="code" href="classAttributeVectorEntry.html#a1">00053</a> <a class="code" href="classAttributeVectorEntry.html#a0">AttributeVectorEntry</a>(
00054 <font class="keyword">const</font> XMLCh* theName,
00055 <font class="keyword">const</font> XMLCh* theValue,
00056 <font class="keyword">const</font> XMLCh* theType,
00057 MemoryManagerType&amp; theManager) :
00058 m_Name(theName, theName + length(theName) + 1, theManager),
00059 m_Value(theValue, theValue + length(theValue) + 1, theManager),
00060 m_Type(theType, theType + length(theType) + 1, theManager)
00061 {
00062 }
00063
<a name="l00064"></a><a class="code" href="classAttributeVectorEntry.html#a2">00064</a> <a class="code" href="classAttributeVectorEntry.html#a0">AttributeVectorEntry</a>(MemoryManagerType&amp; theManager) :
00065 m_Name(theManager),
00066 m_Value(theManager),
00067 m_Type(theManager)
00068 {
00069 }
00070
00071 <font class="keyword">static</font> <a class="code" href="classAttributeVectorEntry.html">AttributeVectorEntry</a>*
<a name="l00072"></a><a class="code" href="classAttributeVectorEntry.html#d0">00072</a> <a class="code" href="classAttributeVectorEntry.html#d0">create</a>( <font class="keyword">const</font> XMLCh* theName,
00073 <font class="keyword">const</font> XMLCh* theValue,
00074 <font class="keyword">const</font> XMLCh* theType,
00075 MemoryManagerType&amp; theManager)<font class="keyword"></font>
00076 <font class="keyword"> </font>{
00077 <font class="keyword">typedef</font> <a class="code" href="classAttributeVectorEntry.html">AttributeVectorEntry</a> <a class="code" href="classXalanDeque.html">ThisType</a>;
00078
00079 XalanMemMgrAutoPtr&lt;ThisType, false&gt; theGuard( theManager , (<a class="code" href="classXalanDeque.html">ThisType</a>*)theManager.allocate(<font class="keyword">sizeof</font>(<a class="code" href="classXalanDeque.html">ThisType</a>)));
00080
00081 <a class="code" href="classXalanDeque.html">ThisType</a>* theResult = theGuard.get();
00082
00083 <font class="keyword">new</font> (theResult) ThisType(theName, theValue, theType, theManager);
00084
00085 theGuard.release();
00086
00087 <font class="keywordflow">return</font> theResult;
00088 }
00089
00090 <font class="keyword">virtual</font>
<a name="l00091"></a><a class="code" href="classAttributeVectorEntry.html#a3">00091</a> <a class="code" href="classAttributeVectorEntry.html#a3">~AttributeVectorEntry</a>()<font class="keyword"></font>
00092 <font class="keyword"> </font>{
00093 }
00094
00095 <font class="keywordtype">void</font>
<a name="l00096"></a><a class="code" href="classAttributeVectorEntry.html#a4">00096</a> <a class="code" href="classAttributeVectorEntry.html#a4">clear</a>()<font class="keyword"></font>
00097 <font class="keyword"> </font>{
00098 m_Name.clear();
00099 m_Value.clear();
00100 m_Type.clear();
00101 }
00102
<a name="l00103"></a><a class="code" href="classAttributeVectorEntry.html#m0">00103</a> XMLChVectorType m_Name;
<a name="l00104"></a><a class="code" href="classAttributeVectorEntry.html#m1">00104</a> XMLChVectorType m_Value;
<a name="l00105"></a><a class="code" href="classAttributeVectorEntry.html#m2">00105</a> XMLChVectorType m_Type;
00106
00107 <font class="comment">// A convenience function to find the length of a null-terminated</font>
00108 <font class="comment">// array of XMLChs</font>
00109 <font class="keyword">static</font> <font class="keyword">const</font> XMLCh*
<a name="l00110"></a><a class="code" href="classAttributeVectorEntry.html#d1">00110</a> <a class="code" href="classAttributeVectorEntry.html#d1">endArray</a>(<font class="keyword">const</font> XMLCh* data)<font class="keyword"></font>
00111 <font class="keyword"> </font>{
00112 assert(data != 0);
00113
00114 <font class="keywordflow">while</font>(*data)
00115 {
00116 ++data;
00117 }
00118
00119 <font class="keywordflow">return</font> data;
00120 }
00121 };
00122
00123
00124
00125 XALAN_CPP_NAMESPACE_END
00126
00127
00128
00129 <font class="preprocessor">#endif // ATTRIBUTEVECTORENTRY_HEADER_GUARD_1357924680</font>
</font></pre></div><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
<p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
<A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
<TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
<TR>
<TD WIDTH="80%" VALIGN="TOP">
<P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
Copyright &copy; 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
</TD>
</TR>
<TR>
<TD WIDTH="100%">
<P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
</TD>
</TR>
</TABLE>