MCPcopy Create free account
hub / github.com/comaps/comaps / json_object_foreach

Function json_object_foreach

generator/brands_loader.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 char const * key;
37 json_t * value;
38 json_object_foreach(arr, key, value)
39 {
40 result.emplace_back();
41 uint64_t id;
42 if (!strings::to_uint64(key, id))
43 MYTHROW(ParsingError, ("Incorrect OSM id:", key));
44 result.back().first = GeoObjectId(type, id);
45 FromJSON(value, result.back().second);
46 }
47}
48
49void ParseTranslations(json_t * root, std::set<string> const & keys, map<uint32_t, string> & idToKey)

Callers

nothing calls this directly

Calls 9

to_uint64Function · 0.85
to_uintFunction · 0.85
backMethod · 0.80
GeoObjectIdClass · 0.70
FromJSONFunction · 0.50
FromJSONObjectOptionalFunction · 0.50
emplace_backMethod · 0.45
emptyMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected