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

Function convert

io/Ilvis2Reader.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140template <typename T>
141T convert(const StringList& s, const std::string& name, size_t fieldno)
142{
143 T output;
144 if (!Utils::fromString(s[fieldno], output))
145 throw Ilvis2Reader::error("Unable to convert " + name +
146 ", " + s[fieldno] + ", to double");
147
148 return output;
149}
150
151
152void Ilvis2Reader::readPoint(PointRef& point, StringList s,

Callers 1

preparedMethod · 0.50

Calls 2

fromStringFunction · 0.70
errorClass · 0.70

Tested by

no test coverage detected