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

Method extractQuery

pdal/FileSpec.cpp:236–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236Utils::StatusWithReason FileSpec::Private::extractQuery(NL::json& node)
237{
238 auto it = node.find("query");
239 if (it == node.end())
240 return true;
241 NL::json& val = *it;
242 if (!val.is_null())
243 {
244 if (!extractStringMap(val, m_query))
245 return { -1, "'filename' sub-argument 'query' must be an object of "
246 "string key-value pairs." };
247 }
248 node.erase(it);
249 return true;
250}
251
252// Provide access to the private 'parse' function.
253Utils::StatusWithReason FileSpecHelper::parse(FileSpec& spec, NL::json& node)

Callers

nothing calls this directly

Calls 4

extractStringMapFunction · 0.85
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected