00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(ATTRIBUTEVECTORENTRYEXTENDED_HEADER_GUARD_1357924680) 00019 #define ATTRIBUTEVECTORENTRYEXTENDED_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/PlatformSupport/AttributeVectorEntry.hpp> 00029 00030 #include <xalanc/Include/XalanMemMgrAutoPtr.hpp> 00031 00032 XALAN_CPP_NAMESPACE_BEGIN 00033 00034 00035 00036 class XALAN_PLATFORMSUPPORT_EXPORT AttributeVectorEntryExtended : public AttributeVectorEntry 00037 { 00038 public: 00039 00040 AttributeVectorEntryExtended( 00041 const XMLChVectorType& theName, 00042 const XMLChVectorType& theValue, 00043 const XMLChVectorType& theType, 00044 const XMLChVectorType& theURI , 00045 const XMLChVectorType& theLocalName, 00046 MemoryManager& theManager) : 00047 AttributeVectorEntry( 00048 theName, 00049 theValue, 00050 theType, 00051 theManager), 00052 m_uri( 00053 theURI, 00054 theManager), 00055 m_localName( 00056 theLocalName, 00057 theManager) 00058 { 00059 } 00060 00061 AttributeVectorEntryExtended( 00062 const XMLCh* theName, 00063 const XMLCh* theValue, 00064 const XMLCh* theType, 00065 const XMLCh* theURI, 00066 const XMLCh* theLocalName, 00067 MemoryManager& theManager) : 00068 AttributeVectorEntry( 00069 theName, 00070 theValue, 00071 theType, 00072 theManager), 00073 m_uri( 00074 theURI, 00075 theURI + length(theURI) + 1, 00076 theManager), 00077 m_localName( 00078 theLocalName, 00079 theLocalName + length(theLocalName) + 1, 00080 theManager) 00081 { 00082 } 00083 00084 AttributeVectorEntryExtended( 00085 const XMLCh* theName, 00086 const XMLCh* theValue, 00087 const XMLCh* theType, 00088 MemoryManager& theManager) : 00089 AttributeVectorEntry( 00090 theName, 00091 theValue, 00092 theType,theManager), 00093 m_uri(theManager), 00094 m_localName(theManager) 00095 { 00096 } 00097 00098 AttributeVectorEntryExtended(MemoryManager& theManager) : 00099 AttributeVectorEntry(theManager), 00100 m_uri(theManager), 00101 m_localName(theManager) 00102 { 00103 } 00104 00105 static AttributeVectorEntryExtended* 00106 create( 00107 const XMLCh* theName, 00108 const XMLCh* theValue, 00109 const XMLCh* theType, 00110 const XMLCh* theURI, 00111 const XMLCh* theLocalName, 00112 MemoryManager& theManager) 00113 { 00114 AttributeVectorEntryExtended* theInstance; 00115 00116 return XalanConstruct( 00117 theManager, 00118 theInstance, 00119 theName, 00120 theValue, 00121 theType, 00122 theURI, 00123 theLocalName, 00124 theManager); 00125 } 00126 00127 virtual 00128 ~AttributeVectorEntryExtended() 00129 { 00130 } 00131 00132 void 00133 clear() 00134 { 00135 AttributeVectorEntry::clear(); 00136 00137 m_uri.clear(); 00138 m_localName.clear(); 00139 } 00140 00141 XMLChVectorType m_uri; 00142 XMLChVectorType m_localName; 00143 }; 00144 00145 00146 00147 XALAN_CPP_NAMESPACE_END 00148 00149 00150 00151 #endif // ATTRIBUTEVECTORENTRY_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|