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

Method validateStageOptions

pdal/PipelineManager.cpp:163–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163void PipelineManager::validateStageOptions() const
164{
165 // Make sure that the options specified are for relevant stages.
166 for (auto& si : m_stageOptions)
167 {
168 const std::string& stageName = si.first;
169 auto it = std::find_if(m_stages.begin(), m_stages.end(),
170 [stageName](Stage *s)
171 { return (s->getName() == stageName ||
172 "stage." + s->tag() == stageName); });
173
174 // If the option stage name matches no created stage, then error.
175 if (it == m_stages.end())
176 {
177 std::ostringstream oss;
178 oss << "Argument references invalid/unused stage: '" <<
179 stageName << "'.";
180 throw pdal_error(oss.str());
181 }
182 }
183}
184
185
186bool PipelineManager::pipelineStreamable() const

Callers

nothing calls this directly

Calls 4

strMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected