diff options
author | vng <viktor.govako@gmail.com> | 2014-02-19 16:35:55 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:13:35 +0300 |
commit | d5daf9d6927cf3f57202c15b844a754851c4145d (patch) | |
tree | 46007f20ac0ab8527dfc85fa161465724477819d /indexer/feature_data.hpp | |
parent | 89fe7fd575f6ddcafba9ef0f4f02887d5a65cadb (diff) |
[generator] Better house name and house number accumulating.
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r-- | indexer/feature_data.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp index 97ebf03311..eaec4371b1 100644 --- a/indexer/feature_data.hpp +++ b/indexer/feature_data.hpp @@ -125,9 +125,6 @@ struct FeatureParamsBase string DebugString() const; - void AddHouseName(string const & s); - void AddHouseNumber(string const & s); - template <class TSink> void Write(TSink & sink, uint8_t header) const { @@ -194,7 +191,7 @@ class FeatureParams : public FeatureParamsBase uint8_t m_geomType; /// We use it now only for search unit tests - string m_streetAddress; + string m_street; public: typedef vector<uint32_t> types_t; @@ -202,9 +199,12 @@ public: FeatureParams() : m_geomType(0xFF) {} + bool AddName(string const & lang, string const & s); + bool AddHouseName(string const & s); + bool AddHouseNumber(string const & s); /// @name Used in storing full street address only. //@{ - inline void AddStreetAddress(string const & s) { m_streetAddress = s; } + void AddStreetAddress(string const & s); bool FormatFullAddress(m2::PointD const & pt, string & res) const; //@} @@ -215,7 +215,7 @@ public: BaseT::operator=(rhs); m_Types = rhs.m_Types; - m_streetAddress = rhs.m_streetAddress; + m_street = rhs.m_street; } inline bool IsValid() const { return !m_Types.empty(); } |