- std::string prop = getProperty(theAttributeName);
- std::transform(prop.begin(), prop.end(), prop.begin(), ::tolower);
- bool result = theDefault;
- if (prop == "true" || prop == "1") {
- result = true;
- } else if (prop == "false" || prop == "0") {
- result = false;
- }
- return result;