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

Method handleHeaderForward

io/LasWriter.cpp:665–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663
664template <typename T>
665void LasWriter::handleHeaderForward(const std::string& s, T& headerVal, const MetadataNode& base)
666{
667 if (Utils::contains(m_forwards, s) && !headerVal.valSet())
668 {
669 MetadataNode invalid = base.findChild(s + "INVALID");
670 MetadataNode m = base.findChild(s);
671 if (!invalid.valid() && m.valid())
672 headerVal.setVal(m.value<typename T::type>());
673 }
674}
675
676
677void LasWriter::handleHeaderForwards(MetadataNode& forward)

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