top
|
up
|
prev
|
next
XPathBoolean Class
Definition at line
41
of
XPathObject.hpp
Constructors
XPathBoolean
(
bool
value_)
Member Functions
std::unique_ptr<
Node
>
ToDom
()
const override
bool
Value
()
const
Member Variables
bool
value
Constructor Details
XPathBoolean Constructor
sngxml::xpath::XPathBoolean::XPathBoolean(
bool
value_)
Definition at line
91
of
XPathObject.cpp
:
91
:
XPathObject
(
XPathObjectType
::
boolean
)
,
value
(
value_
)
92
{
93
}
Declaration at line
44
of
XPathObject.hpp
Member Function Details
ToDom Member Function
std::unique_ptr<
Node
> sngxml::xpath::XPathBoolean::ToDom()
const override
Definition at line
95
of
XPathObject.cpp
:
96
{
97
std
::
unique_ptr
<
dom
::
Element
>
result
(
new
dom
::
Element
(
U"boolean"
)
)
;
98
std
::
u32string
val
=
U"true"
;
99
if
(
!
value
)
100
{
101
val
=
U"false"
;
102
}
103
result
->
SetAttribute
(
U"value"
,
val
)
;
104
return
std
::
unique_ptr
<
dom
::
Node
>
(
result
.
release
(
)
)
;
105
}
Declaration at line
46
of
XPathObject.hpp
Base class overridden functions:
sngxml::xpath::XPathObject::ToDom
Value Member Function
bool
sngxml::xpath::XPathBoolean::Value()
const
Definition at line
45
of
XPathObject.hpp
:
45
{
return
value
;
}
Called by:
sngxml::xpath::XPathBooleanFunction::Evaluate
,
sngxml::xpath::XPathNumberFunction::Evaluate
,
sngxml::xpath::XPathStringFunction::Evaluate
top
|
up
|
prev
|
next