MayaFlux
1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
decode()
bool
MayaFlux::IO::XmlTextCodec
< bool >::decode
(
std::string_view
source
,
bool &
value
,
XmlTextError
&
error
)
inline
static
Definition at line
88
of file
XmlTextCodec.hpp
.
89
{
90
if
(
source
==
"true"
||
source
==
"1"
) {
91
value
=
true
;
92
return
true
;
93
}
94
if
(
source
==
"false"
||
source
==
"0"
) {
95
value
=
false
;
96
return
true
;
97
}
98
error
=
XmlTextError::Invalid
;
99
return
false
;
100
}
MayaFlux::IO::XmlTextCodec
Convert XML attribute text to one described member value.
Definition
XmlTextCodec.hpp:66
References
MayaFlux::IO::Invalid
.
MayaFlux
IO
XmlTextCodec< bool >
Generated by
1.15.0