Xalan-C++ API Reference
1.12.0
xalanc
XPath
XBoolean.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(XBOOLEAN_HEADER_GUARD_1357924680)
19
#define XBOOLEAN_HEADER_GUARD_1357924680
20
21
22
23
// Base header file. Must be first.
24
#include <
xalanc/XPath/XPathDefinitions.hpp
>
25
26
27
28
// Base class header file.
29
#include <
xalanc/XPath/XObject.hpp
>
30
31
32
33
namespace
XALAN_CPP_NAMESPACE
{
34
35
36
37
class
XALAN_XPATH_EXPORT
XBoolean
:
public
XObject
38
{
39
public
:
40
41
typedef
XObject
ParentType
;
42
43
/**
44
* Construct an XBoolean object from a boolean value
45
*
46
* @param val The boolean value to initialize object
47
* @param theMemoryManager The MemoryManager instance.
48
*/
49
XBoolean
(
50
bool
val,
51
MemoryManager& theMemoryManager);
52
53
/**
54
* Construct an XBoolean object from another.
55
*
56
* @param source The source XBoolean instance.
57
* @param theMemoryManager The MemoryManager instance.
58
*/
59
XBoolean
(
60
const
XBoolean
& source,
61
MemoryManager& theMemoryManager);
62
63
virtual
64
~
XBoolean
();
65
66
// These methods are inherited from XObject ...
67
68
virtual
const
XalanDOMString
&
69
getTypeString()
const
;
70
71
virtual
double
72
num(
XPathExecutionContext
& executionContext)
const
;
73
74
using
ParentType::num;
75
76
virtual
bool
77
boolean(
XPathExecutionContext
& executionContext)
const
;
78
79
virtual
const
XalanDOMString
&
80
str(
XPathExecutionContext
& executionContext)
const
;
81
82
virtual
const
XalanDOMString
&
83
str()
const
;
84
85
virtual
void
86
str(
87
XPathExecutionContext
& executionContext,
88
FormatterListener
& formatterListener,
89
MemberFunctionPtr
function
)
const
;
90
91
virtual
void
92
str(
93
FormatterListener
& formatterListener,
94
MemberFunctionPtr
function
)
const
;
95
96
virtual
void
97
str(
98
XPathExecutionContext
& executionContext,
99
XalanDOMString
& theBuffer)
const
;
100
101
virtual
void
102
str(
XalanDOMString
& theBuffer)
const
;
103
104
using
ParentType::str;
105
106
virtual
double
107
stringLength(
XPathExecutionContext
& executionContext)
const
;
108
109
virtual
void
110
ProcessXObjectTypeCallback(
XObjectTypeCallback
& theCallbackObject);
111
112
virtual
void
113
ProcessXObjectTypeCallback(
XObjectTypeCallback
& theCallbackObject)
const
;
114
115
private
:
116
117
bool
m_value;
118
};
119
120
121
122
}
123
124
125
126
#endif // XBOOLEAN_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition:
XalanVersion.hpp:76
XALAN_XPATH_EXPORT
#define XALAN_XPATH_EXPORT
Definition:
XPathDefinitions.hpp:35
xalanc::XObjectTypeCallback
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XOb...
Definition:
XObjectTypeCallback.hpp:54
xalanc::XBoolean::ParentType
XObject ParentType
Definition:
XBoolean.hpp:41
xalanc::XObject
Class to hold XPath return types.
Definition:
XObject.hpp:63
xalanc::FormatterListener
A SAX-based formatter interface for the XSL processor.
Definition:
FormatterListener.hpp:56
xalanc::XPathExecutionContext
Definition:
XPathExecutionContext.hpp:82
xalanc::XalanDOMString
Definition:
XalanDOMString.hpp:45
xalanc::XBoolean
Definition:
XBoolean.hpp:37
XObject.hpp
XPathDefinitions.hpp
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:20 for Xalan-C++ API Reference by
1.8.17