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

Method setVal

io/HeaderVal.hpp:164–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 bool setVal(std::string val)
165 {
166 m_valSet = true;
167 m_val = val;
168 if (LEN > 0)
169 m_val.resize(LEN);
170 return (LEN == 0 || val.length() <= LEN);
171 }
172
173 std::string val() const
174 { return m_valSet ? m_val : m_defVal; }

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected