| 323 | } |
| 324 | |
| 325 | bool cmQtAutoGenerator::InfoT::GetUInt(std::string const& key, |
| 326 | unsigned int& value, |
| 327 | bool required) const |
| 328 | { |
| 329 | Json::Value const& jval = this->Json_[key]; |
| 330 | if (jval.isUInt()) { |
| 331 | value = jval.asUInt(); |
| 332 | } else { |
| 333 | if (!jval.isNull() || required) { |
| 334 | return this->LogError(cmStrCat(key, " is not an unsigned integer.")); |
| 335 | } |
| 336 | } |
| 337 | return true; |
| 338 | } |
| 339 | |
| 340 | bool cmQtAutoGenerator::InfoT::GetArray(std::string const& key, |
| 341 | std::vector<std::string>& list, |