forked from organicmaps/organicmaps
[editor] FeatureType::SetHouseNumber().
This commit is contained in:
parent
c49e89632a
commit
a2a6619999
2 changed files with 10 additions and 0 deletions
|
@ -466,6 +466,14 @@ string FeatureType::GetHouseNumber() const
|
|||
return m_params.house.Get();
|
||||
}
|
||||
|
||||
void FeatureType::SetHouseNumber(string const & number)
|
||||
{
|
||||
if (number.empty())
|
||||
m_params.house.Clear();
|
||||
else
|
||||
m_params.house.Set(number);
|
||||
}
|
||||
|
||||
bool FeatureType::GetName(int8_t lang, string & name) const
|
||||
{
|
||||
if (!HasName())
|
||||
|
|
|
@ -261,6 +261,8 @@ public:
|
|||
friend string DebugPrint(FeatureType const & ft);
|
||||
|
||||
string GetHouseNumber() const;
|
||||
/// Needed for Editor, to change house numbers in runtime.
|
||||
void SetHouseNumber(string const & number);
|
||||
|
||||
/// @name Get names for feature.
|
||||
/// @param[out] defaultName corresponds to osm tag "name"
|
||||
|
|
Loading…
Add table
Reference in a new issue