| 187 | } // namespace |
| 188 | |
| 189 | bool ReadSpeedCamsFromMwm(MwmValue const & mwmValue, SpeedCamerasMapT & camerasMap) |
| 190 | { |
| 191 | try |
| 192 | { |
| 193 | auto reader = mwmValue.m_cont.GetReader(CAMERAS_INFO_FILE_TAG); |
| 194 | ReaderSource src(reader); |
| 195 | DeserializeSpeedCamsFromMwm(src, camerasMap); |
| 196 | return true; |
| 197 | } |
| 198 | catch (Reader::OpenException const &) |
| 199 | { |
| 200 | LOG(LWARNING, (CAMERAS_INFO_FILE_TAG "section not found in", mwmValue.GetCountryFileName())); |
| 201 | } |
| 202 | catch (Reader::Exception const & e) |
| 203 | { |
| 204 | LOG(LERROR, |
| 205 | ("Error while reading", CAMERAS_INFO_FILE_TAG, "section in", mwmValue.GetCountryFileName(), ":", e.Msg())); |
| 206 | } |
| 207 | return false; |
| 208 | } |
| 209 | |
| 210 | bool ReadRoadAccessFromMwm(MwmValue const & mwmValue, VehicleType vehicleType, RoadAccess & roadAccess) |
| 211 | { |