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 )
inlinestatic

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 }
99 return false;
100 }
Convert XML attribute text to one described member value.

References MayaFlux::IO::Invalid.