MayaFlux
1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
decode()
bool
MayaFlux::Reflect::TextCodec
< bool >::decode
(
std::string_view
source
,
bool &
value
,
TextError
&
error
)
inline
static
Definition at line
103
of file
TextCodec.hpp
.
104
{
105
if
(
source
==
"true"
||
source
==
"1"
) {
106
value
=
true
;
107
return
true
;
108
}
109
if
(
source
==
"false"
||
source
==
"0"
) {
110
value
=
false
;
111
return
true
;
112
}
113
error
=
TextError::Invalid
;
114
return
false
;
115
}
MayaFlux::Reflect::TextCodec
Conversion of authored text to one value type.
Definition
TextCodec.hpp:81
References
MayaFlux::Reflect::Invalid
.
MayaFlux
Reflect
TextCodec< bool >
Generated by
1.15.0