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

Method stageOptions

pdal/PipelineManager.cpp:496–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494
495
496Options PipelineManager::stageOptions(Stage& stage)
497{
498 Options opts;
499
500 std::string tag = stage.tag();
501 if (tag.size())
502 {
503 tag = "stage." + tag;
504 auto oi = m_stageOptions.find(tag);
505 if (oi != m_stageOptions.end())
506 opts.add(oi->second);
507 }
508 // Tag-based options options override stagename-based options, so
509 // we call addConditional.
510 auto oi = m_stageOptions.find(stage.getName());
511 if (oi != m_stageOptions.end())
512 opts.addConditional(oi->second);
513 return opts;
514}
515
516
517std::vector<Stage *> PipelineManager::roots() const

Callers 2

getFileInfoMethod · 0.80
extractStageOptionsMethod · 0.80

Calls 6

addConditionalMethod · 0.80
sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45
addMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected