MCPcopy Create free account
hub / github.com/PDAL/PDAL / extractStringMap

Function extractStringMap

pdal/FileSpec.cpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60{
61
62bool extractStringMap(NL::json& node, StringMap& map)
63{
64 if (!node.is_object())
65 return false;
66 for (auto& [key, val] : node.items())
67 {
68 if (val.is_string())
69 map.insert({key, val});
70 else
71 return false;
72 }
73 return true;
74}
75
76} // unnamed namespace
77

Callers 2

extractHeadersMethod · 0.85
extractQueryMethod · 0.85

Calls 2

itemsMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected