Xalan-C++ API Reference
1.12.0
xalanc
XercesParserLiaison
XercesWrapperHelper.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(XERCESWRAPPERHELPER_HEADER_GUARD_1357924680)
19
#define XERCESWRAPPERHELPER_HEADER_GUARD_1357924680
20
21
22
23
#include <
xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp
>
24
25
26
27
#include <cassert>
28
29
30
31
#include <xercesc/util/XercesDefs.hpp>
32
33
34
35
#include <
xalanc/XalanDOM/XalanDOMString.hpp
>
36
37
38
39
#include <
xalanc/XercesParserLiaison/XercesWrapperTypes.hpp
>
40
41
42
43
namespace
XALAN_CPP_NAMESPACE
{
44
45
46
47
class
XALAN_XERCESPARSERLIAISON_EXPORT
XercesWrapperHelper
48
{
49
public
:
50
51
typedef
XalanSize_t
XercesStringLengthType
;
52
53
static
const
XMLCh*
54
XalanDOMStringToXercesDOMString
(
const
XalanDOMString
& theString)
55
{
56
assert(
XercesStringLengthType
(theString.
length
()) == theString.
length
());
57
58
return
theString.
c_str
();
59
}
60
61
private
:
62
63
// Not implemented...
64
XercesWrapperHelper
();
65
66
XercesWrapperHelper
(
const
XercesWrapperHelper
&);
67
68
XercesWrapperHelper
&
69
operator=(
const
XercesWrapperHelper
&);
70
};
71
72
73
74
}
75
76
77
78
#endif // !defined(XERCESWRAPPERHELPER_HEADER_GUARD_1357924680)
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition:
XalanVersion.hpp:76
xalanc::XercesWrapperHelper::XercesStringLengthType
XalanSize_t XercesStringLengthType
Definition:
XercesWrapperHelper.hpp:51
XalanDOMString.hpp
xalanc::XalanDOMString::length
size_type length() const
Definition:
XalanDOMString.hpp:209
XercesParserLiaisonDefinitions.hpp
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition:
XercesParserLiaisonDefinitions.hpp:39
xalanc::XalanDOMString::c_str
const XalanDOMChar * c_str() const
Definition:
XalanDOMString.hpp:344
xalanc::XercesWrapperHelper::XalanDOMStringToXercesDOMString
static const XMLCh * XalanDOMStringToXercesDOMString(const XalanDOMString &theString)
Definition:
XercesWrapperHelper.hpp:54
XercesWrapperTypes.hpp
xalanc::XercesWrapperHelper
Definition:
XercesWrapperHelper.hpp:47
xalanc::XalanDOMString
Definition:
XalanDOMString.hpp:45
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:19 for Xalan-C++ API Reference by
1.8.17