diff options
author | Maxim Pimenov <m@maps.me> | 2016-05-27 19:40:55 +0300 |
---|---|---|
committer | Maxim Pimenov <m@maps.me> | 2016-05-31 14:54:46 +0300 |
commit | f672cb0b8227ddafcd6b271724dda3e05df9bfef (patch) | |
tree | 423ac795cf5da4a96136416827e943040f19a1b5 /search/house_to_street_table.hpp | |
parent | 59f40d7669598a229ffa4f6269e17234f9af9506 (diff) |
[search] Got rid of the v2 directory and namespace.
Diffstat (limited to 'search/house_to_street_table.hpp')
-rw-r--r-- | search/house_to_street_table.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/search/house_to_street_table.hpp b/search/house_to_street_table.hpp new file mode 100644 index 0000000000..f395e635ba --- /dev/null +++ b/search/house_to_street_table.hpp @@ -0,0 +1,26 @@ +#pragma once + +#include "std/limits.hpp" +#include "std/unique_ptr.hpp" + +class MwmValue; + +namespace search +{ +class HouseToStreetTable +{ +public: + virtual ~HouseToStreetTable() = default; + + /// @todo Actually, value may be nullptr in the very common case. + /// It's better to construct a table from MwmHandle. + static unique_ptr<HouseToStreetTable> Load(MwmValue & value); + + // Returns true and stores to |streetIndex| the index number of the + // correct street corresponding to the house in the list of streets + // generated by ReverseGeocoder. Returns false if there is no such + // street. + virtual bool Get(uint32_t houseId, uint32_t & streetIndex) const = 0; +}; + +} // namespace search |