MCPcopy Create free account
hub / github.com/Kitware/CMake / GetUInt

Method GetUInt

Source/cmQtAutoGenerator.cxx:325–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325bool 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
340bool cmQtAutoGenerator::InfoT::GetArray(std::string const& key,
341 std::vector<std::string>& list,

Callers 2

InitFromInfoMethod · 0.80
RunMethod · 0.80

Calls 5

LogErrorMethod · 0.95
isUIntMethod · 0.80
asUIntMethod · 0.80
isNullMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected