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
path: root/search
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-09-11 17:11:52 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:43:15 +0300
commitf07420ecf204c6a8aeb1f6a15923c04849ed6bfb (patch)
treebd37d6ed33a4fb4c2c8d73356d4e232d2ca3f524 /search
parent1935e2b032aad52b15e7bd30820d015dd47162ce (diff)
DebugPrint for search::SearchParams.
Diffstat (limited to 'search')
-rw-r--r--search/params.cpp7
-rw-r--r--search/params.hpp7
2 files changed, 12 insertions, 2 deletions
diff --git a/search/params.cpp b/search/params.cpp
index ba7ac6b842..0fb49d3ff6 100644
--- a/search/params.cpp
+++ b/search/params.cpp
@@ -64,4 +64,11 @@ bool SearchParams::IsEqualCommon(SearchParams const & rhs) const
m_validPos == rhs.m_validPos);
}
+string DebugPrint(SearchParams const & params)
+{
+ string s("search::SearchParams: ");
+ s = s + "Query = " + params.m_query;
+ return s;
+}
+
} // namespace search
diff --git a/search/params.hpp b/search/params.hpp
index 2fd8246639..1dd1f21c0d 100644
--- a/search/params.hpp
+++ b/search/params.hpp
@@ -32,8 +32,8 @@ namespace search
SearchCallbackT m_callback;
string m_query;
- /// Can be -1 (@see StringUtf8Multilang::UNSUPPORTED_LANGUAGE_CODE), in the
- /// case of input language is not known
+ /// Can be -1 (@see StringUtf8Multilang::UNSUPPORTED_LANGUAGE_CODE),
+ /// in the case when input language is unknown.
int8_t m_inputLanguageCode;
double m_lat, m_lon;
@@ -43,4 +43,7 @@ namespace search
enum { ResetBit = 0x1, NearMeBit = 0x2 };
int m_mode;
};
+
+ string DebugPrint(SearchParams const & params);
+
} // namespace search