Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-12-17 14:16:09 +0300
committerConstantin Shalnev <c.shalnev@corp.mail.ru>2016-01-13 15:54:47 +0300
commite1c641c965b1625128e692f09f84024cdceef17b (patch)
treecd93ddab31d20b0a2052140dee04051bce23912c /map/gps_track.hpp
parentc811498ec0689f912878e3a2a26d4eae09526f44 (diff)
Use filter as strategy to simplify testing and assembling
Diffstat (limited to 'map/gps_track.hpp')
-rw-r--r--map/gps_track.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/map/gps_track.hpp b/map/gps_track.hpp
index ddc2c33acd..1ad2c38d45 100644
--- a/map/gps_track.hpp
+++ b/map/gps_track.hpp
@@ -17,7 +17,9 @@ public:
/// @param filePath - path to the file on disk to persist track
/// @param maxItemCount - number of points to store on disk
/// @param duration - initial value of track duration
- GpsTrack(string const & filePath, size_t maxItemCount, hours duration);
+ /// @param filter - filter object used for filtering points, GpsTrackNullFilter is created by default
+ GpsTrack(string const & filePath, size_t maxItemCount, hours duration,
+ unique_ptr<IGpsTrackFilter> && filter = unique_ptr<IGpsTrackFilter>());
~GpsTrack();
/// Adds point or collection of points to gps tracking
@@ -82,7 +84,7 @@ private:
unique_ptr<GpsTrackStorage> m_storage; // used in the worker thread
unique_ptr<GpsTrackCollection> m_collection; // used in the worker thread
- GpsTrackFilter m_filter;
+ unique_ptr<IGpsTrackFilter> m_filter; // used in the worker thread
mutex m_threadGuard;
thread m_thread;