| 309 | } |
| 310 | |
| 311 | bool cmQtAutoGenerator::InfoT::GetBool(std::string const& key, bool& value, |
| 312 | bool required) const |
| 313 | { |
| 314 | Json::Value const& jval = this->Json_[key]; |
| 315 | if (jval.isBool()) { |
| 316 | value = jval.asBool(); |
| 317 | } else { |
| 318 | if (!jval.isNull() || required) { |
| 319 | return this->LogError(cmStrCat(key, " is not a boolean.")); |
| 320 | } |
| 321 | } |
| 322 | return true; |
| 323 | } |
| 324 | |
| 325 | bool cmQtAutoGenerator::InfoT::GetUInt(std::string const& key, |
| 326 | unsigned int& value, |