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

Function extractFilename

pdal/PipelineReaderJSON.cpp:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193FileSpec extractFilename(NL::json& node)
194{
195 FileSpec spec;
196
197 auto it = node.find("filename");
198 if (it == node.end())
199 return spec;
200
201 Utils::StatusWithReason status = FileSpecHelper::parse(spec, *it);
202 if (!status)
203 throw pdal_error(status.what());
204 node.erase(it);
205 return spec;
206}
207
208std::vector<Stage *> extractInputs(NL::json& node, TagMap& tags)
209{

Callers 1

parsePipelineFunction · 0.85

Calls 5

parseFunction · 0.70
findMethod · 0.45
endMethod · 0.45
whatMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected