PointStorageWriterInterface overrides:
| 141 | |
| 142 | // PointStorageWriterInterface overrides: |
| 143 | void AddPoint(uint64_t id, double lat, double lon) override |
| 144 | { |
| 145 | if (m_buffer.size() >= kBufferSize) |
| 146 | FlushAsync(); |
| 147 | |
| 148 | LatLon ll; |
| 149 | ToLatLon(lat, lon, ll); |
| 150 | m_buffer.push_back({id, ll}); |
| 151 | |
| 152 | ++m_numProcessedPoints; |
| 153 | } |
| 154 | |
| 155 | private: |
| 156 | using BufferT = std::vector<LatLonPos>; |
no test coverage detected