diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-04-27 16:32:34 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:47:15 +0300 |
commit | 390d0c2451728e0cbf412f804c7c97d97b4e997b (patch) | |
tree | 01c2d9c04f357a36cf948374691bd2e1cf6c8726 /map/user_mark.hpp | |
parent | 5a81ae596eb765bb8ddf12e913046432231c4a72 (diff) |
Added api markers
Diffstat (limited to 'map/user_mark.hpp')
-rw-r--r-- | map/user_mark.hpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/map/user_mark.hpp b/map/user_mark.hpp index c240d2e210..29c49531db 100644 --- a/map/user_mark.hpp +++ b/map/user_mark.hpp @@ -32,7 +32,8 @@ public: SEARCH, POI, BOOKMARK, - MY_POSITION + MY_POSITION, + DEBUG_MARK }; UserMark(m2::PointD const & ptOrg, UserMarkContainer * container) @@ -133,6 +134,28 @@ private: string m_id; }; +class DebugMarkPoint : public UserMark +{ +public: + DebugMarkPoint(m2::PointD const & ptOrg, UserMarkContainer * container) + : UserMark(ptOrg, container) + { + } + + UserMark::Type GetMarkType() const override { return UserMark::Type::DEBUG_MARK; } + + unique_ptr<UserMarkCopy> Copy() const override + { + return unique_ptr<UserMarkCopy>(new UserMarkCopy(new DebugMarkPoint(m_ptOrg, m_container))); + } + + virtual void FillLogEvent(TEventContainer & details) const override + { + UserMark::FillLogEvent(details); + details.emplace("markType", "DEBUG"); + } +}; + class SearchMarkPoint : public UserMark { public: |