| 1243 | } |
| 1244 | |
| 1245 | boost::optional<double> EpwDataPoint::getFieldByName(const std::string& name) const { |
| 1246 | EpwDataField id; |
| 1247 | try { |
| 1248 | id = EpwDataField(name); |
| 1249 | } catch (...) { |
| 1250 | // Could do a warning message here |
| 1251 | return boost::none; |
| 1252 | } |
| 1253 | return getField(id); |
| 1254 | } |
| 1255 | |
| 1256 | boost::optional<double> EpwDataPoint::getField(EpwDataField id) const { |
| 1257 | boost::optional<int> ivalue; |