diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2012-12-01 22:17:21 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:22 +0300 |
commit | 990ad2780c9088b2c2c5982b22c23edec5af109d (patch) | |
tree | 525538284073dcf3eebcfaccd2df8646f8bf4bb2 /map/bookmark.hpp | |
parent | 8bd758a698cb6a9dea8f6336279da94e593a1110 (diff) |
[bookmarks] Added description field
Diffstat (limited to 'map/bookmark.hpp')
-rw-r--r-- | map/bookmark.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/map/bookmark.hpp b/map/bookmark.hpp index 14781ebbb4..8df2e45d87 100644 --- a/map/bookmark.hpp +++ b/map/bookmark.hpp @@ -14,18 +14,21 @@ class Bookmark { m2::PointD m_org; string m_name; + string m_description; string m_type; ///< Now it stores bookmark color (category style). double m_scale; ///< Viewport scale. -1.0 - is a default value (no scale set). public: Bookmark() {} - Bookmark(m2::PointD const & org, string const & name, string const & type) - : m_org(org), m_name(name), m_type(type), m_scale(-1.0) + Bookmark(m2::PointD const & org, string const & name, string const & type, + string const & description = string()) + : m_org(org), m_name(name), m_description(description), m_type(type), m_scale(-1.0) { } m2::PointD const & GetOrg() const { return m_org; } string const & GetName() const { return m_name; } + string const & GetDescription() const { return m_description; } /// @return Now its a bookmark color. string const & GetType() const { return m_type; } m2::RectD GetViewport() const { return m2::RectD(m_org, m_org); } |