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

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 }
114 return false;
115 }
Conversion of authored text to one value type.
Definition TextCodec.hpp:81

References MayaFlux::Reflect::Invalid.