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

Method handleHeaderForward

io/CopcWriter.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180template <typename T>
181void CopcWriter::handleHeaderForward(const std::string& s, T& headerVal, const MetadataNode& base)
182{
183 if (Utils::contains(b->forwards, s) && !headerVal.valSet())
184 {
185 MetadataNode invalid = base.findChild(s + "INVALID");
186 MetadataNode m = base.findChild(s);
187 if (!invalid.valid() && m.valid())
188 headerVal.setVal(m.value<typename T::type>());
189 }
190}
191
192void CopcWriter::handleHeaderForwards(MetadataNode& forward)
193{

Callers

nothing calls this directly

Calls 4

valSetMethod · 0.80
containsFunction · 0.50
validMethod · 0.45
setValMethod · 0.45

Tested by

no test coverage detected