diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-06-26 10:51:37 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-06-27 19:20:52 +0300 |
commit | 570b2b0b35df1fad001460eccf35da31e334b8b0 (patch) | |
tree | 2f805cf3122db499b794248f3f6c1bdd232b258c /routing/index_router.hpp | |
parent | dd7186b48be4636c1e67d223817a47f3f3a026e9 (diff) |
[indexer] DataSource refactoring
Diffstat (limited to 'routing/index_router.hpp')
-rw-r--r-- | routing/index_router.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/routing/index_router.hpp b/routing/index_router.hpp index e7cd938d18..64af3ad631 100644 --- a/routing/index_router.hpp +++ b/routing/index_router.hpp @@ -28,7 +28,7 @@ #include <string> #include <vector> -class DataSourceBase; +class DataSource; namespace routing { @@ -62,10 +62,11 @@ public: m2::PointD const m_direction; }; - IndexRouter(VehicleType vehicleType, bool loadAltitudes, CountryParentNameGetterFn const & countryParentNameGetterFn, + IndexRouter(VehicleType vehicleType, bool loadAltitudes, + CountryParentNameGetterFn const & countryParentNameGetterFn, TCountryFileFn const & countryFileFn, CourntryRectFn const & countryRectFn, shared_ptr<NumMwmIds> numMwmIds, unique_ptr<m4::Tree<NumMwmId>> numMwmTree, - traffic::TrafficCache const & trafficCache, DataSourceBase & dataSource); + traffic::TrafficCache const & trafficCache, DataSource & dataSource); std::unique_ptr<WorldGraph> MakeSingleMwmWorldGraph(); bool FindBestSegment(m2::PointD const & point, m2::PointD const & direction, @@ -148,7 +149,7 @@ private: VehicleType m_vehicleType; bool m_loadAltitudes; std::string const m_name; - DataSourceBase & m_dataSource; + DataSource & m_dataSource; std::shared_ptr<VehicleModelFactoryInterface> m_vehicleModelFactory; TCountryFileFn const m_countryFileFn; |