Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Koronchik <denis@mapswithme.com>2014-09-12 19:09:48 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:28:16 +0300
commit4de675fbb9d95dc1046bd495a49e9caaa3e74c87 (patch)
treefd91b6930286e2d1fef8b4b5a7f264f708e92664 /indexer/feature_decl.hpp
parentedbed0336bb2f3c052084ad39c5363611a6530f8 (diff)
Pretty print of FeatureType.
Diffstat (limited to 'indexer/feature_decl.hpp')
-rw-r--r--indexer/feature_decl.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indexer/feature_decl.hpp b/indexer/feature_decl.hpp
index 8e2db502f0..8fa8ffc110 100644
--- a/indexer/feature_decl.hpp
+++ b/indexer/feature_decl.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include "../std/sstream.hpp"
+#include "../std/string.hpp"
#include "../std/stdint.hpp"
@@ -31,3 +33,10 @@ struct FeatureID
return !(*this == r);
}
};
+
+inline string DebugPrint(FeatureID const & id)
+{
+ ostringstream ss;
+ ss << "{ " << id.m_mwm << ", " << id.m_offset << " }";
+ return ss.str();
+}