MCPcopy Create free account
hub / github.com/comaps/comaps / UpdateStorage

Method UpdateStorage

libs/map/gps_track.cpp:259–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void GpsTrack::UpdateStorage(bool needClear, vector<location::GpsInfo> const & points)
260{
261 InitStorageIfNeed();
262 if (!m_storage)
263 return;
264
265 try
266 {
267 if (needClear)
268 m_storage->Clear();
269
270 m_storage->Append(points);
271 }
272 catch (RootException const & e)
273 {
274 LOG(LWARNING, ("Track storage exception:", e.Msg()));
275 m_storage.reset();
276 }
277}
278
279void GpsTrack::UpdateCollection(bool needClear, vector<location::GpsInfo> const & points,
280 pair<size_t, size_t> & addedIds, pair<size_t, size_t> & evictedIds)

Callers

nothing calls this directly

Calls 3

ClearMethod · 0.45
AppendMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected