| 139 | |
| 140 | template <typename T> |
| 141 | T 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 | |
| 152 | void Ilvis2Reader::readPoint(PointRef& point, StringList s, |
no test coverage detected