Xalan-C++ API Reference  1.12.0
AttributeVectorEntryExtended.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(ATTRIBUTEVECTORENTRYEXTENDED_HEADER_GUARD_1357924680)
19 #define ATTRIBUTEVECTORENTRYEXTENDED_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
29 
31 
32 namespace XALAN_CPP_NAMESPACE {
33 
34 
35 
37 {
38 public:
39 
41  const XMLChVectorType& theName,
42  const XMLChVectorType& theValue,
43  const XMLChVectorType& theType,
44  const XMLChVectorType& theURI ,
45  const XMLChVectorType& theLocalName,
46  MemoryManager& theManager) :
48  theName,
49  theValue,
50  theType,
51  theManager),
52  m_uri(
53  theURI,
54  theManager),
55  m_localName(
56  theLocalName,
57  theManager)
58  {
59  }
60 
62  const XMLCh* theName,
63  const XMLCh* theValue,
64  const XMLCh* theType,
65  const XMLCh* theURI,
66  const XMLCh* theLocalName,
67  MemoryManager& theManager) :
69  theName,
70  theValue,
71  theType,
72  theManager),
73  m_uri(
74  theURI,
75  theURI + length(theURI) + 1,
76  theManager),
77  m_localName(
78  theLocalName,
79  theLocalName + length(theLocalName) + 1,
80  theManager)
81  {
82  }
83 
85  const XMLCh* theName,
86  const XMLCh* theValue,
87  const XMLCh* theType,
88  MemoryManager& theManager) :
90  theName,
91  theValue,
92  theType,theManager),
93  m_uri(theManager),
94  m_localName(theManager)
95  {
96  }
97 
98  AttributeVectorEntryExtended(MemoryManager& theManager) :
99  AttributeVectorEntry(theManager),
100  m_uri(theManager),
101  m_localName(theManager)
102  {
103  }
104 
107  const XMLCh* theName,
108  const XMLCh* theValue,
109  const XMLCh* theType,
110  const XMLCh* theURI,
111  const XMLCh* theLocalName,
112  MemoryManager& theManager)
113  {
114  AttributeVectorEntryExtended* theInstance;
115 
116  return XalanConstruct(
117  theManager,
118  theInstance,
119  theName,
120  theValue,
121  theType,
122  theURI,
123  theLocalName,
124  theManager);
125  }
126 
127  virtual
129  {
130  }
131 
132  void
134  {
136 
137  m_uri.clear();
138  m_localName.clear();
139  }
140 
141  XMLChVectorType m_uri;
142  XMLChVectorType m_localName;
143 };
144 
145 
146 
147 }
148 
149 
150 
151 #endif // ATTRIBUTEVECTORENTRY_HEADER_GUARD_1357924680
AttributeVectorEntry.hpp
xalanc::AttributeVectorEntry
Definition: AttributeVectorEntry.hpp:38
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::clear
void clear(XalanDOMString &theString)
Remove all elements from target string.
Definition: DOMStringHelper.hpp:2475
xalanc::AttributeVectorEntryExtended::~AttributeVectorEntryExtended
virtual ~AttributeVectorEntryExtended()
Definition: AttributeVectorEntryExtended.hpp:128
xalanc::AttributeVectorEntryExtended
Definition: AttributeVectorEntryExtended.hpp:36
xalanc::AttributeVectorEntryExtended::clear
void clear()
Definition: AttributeVectorEntryExtended.hpp:133
xalanc::AttributeVectorEntryExtended::m_localName
XMLChVectorType m_localName
Definition: AttributeVectorEntryExtended.hpp:142
xalanc::XalanConstruct
Type * XalanConstruct(MemoryManager &theMemoryManager, Type *&theInstance)
Definition: XalanMemoryManagement.hpp:200
xalanc::AttributeVectorEntryExtended::AttributeVectorEntryExtended
AttributeVectorEntryExtended(const XMLChVectorType &theName, const XMLChVectorType &theValue, const XMLChVectorType &theType, const XMLChVectorType &theURI, const XMLChVectorType &theLocalName, MemoryManager &theManager)
Definition: AttributeVectorEntryExtended.hpp:40
xalanc::AttributeVectorEntryExtended::m_uri
XMLChVectorType m_uri
Definition: AttributeVectorEntryExtended.hpp:141
XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:35
PlatformSupportDefinitions.hpp
xalanc::AttributeVectorEntryExtended::AttributeVectorEntryExtended
AttributeVectorEntryExtended(const XMLCh *theName, const XMLCh *theValue, const XMLCh *theType, const XMLCh *theURI, const XMLCh *theLocalName, MemoryManager &theManager)
Definition: AttributeVectorEntryExtended.hpp:61
xalanc::AttributeVectorEntryExtended::AttributeVectorEntryExtended
AttributeVectorEntryExtended(MemoryManager &theManager)
Definition: AttributeVectorEntryExtended.hpp:98
xalanc::AttributeVectorEntryExtended::AttributeVectorEntryExtended
AttributeVectorEntryExtended(const XMLCh *theName, const XMLCh *theValue, const XMLCh *theType, MemoryManager &theManager)
Definition: AttributeVectorEntryExtended.hpp:84
xalanc::length
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
Definition: DOMStringHelper.hpp:235
xalanc::AttributeVectorEntryExtended::create
static AttributeVectorEntryExtended * create(const XMLCh *theName, const XMLCh *theValue, const XMLCh *theType, const XMLCh *theURI, const XMLCh *theLocalName, MemoryManager &theManager)
Definition: AttributeVectorEntryExtended.hpp:106
XalanMemMgrAutoPtr.hpp