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:
authorAlex Zolotarev <alex@maps.me>2016-02-18 20:49:37 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:49:31 +0300
commitb76b79242126d66f5533048fe7e8e31ae6d17e34 (patch)
tree760b0ac95f852f4136e9820fe1e5d500327c17bc /indexer/classificator.hpp
parent700e8364e79166f4c259758c586772091ccae2ae (diff)
Classificator::GetTypeByReadableObjectName().
Diffstat (limited to 'indexer/classificator.hpp')
-rw-r--r--indexer/classificator.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indexer/classificator.hpp b/indexer/classificator.hpp
index 4d94df78ca..02550168f5 100644
--- a/indexer/classificator.hpp
+++ b/indexer/classificator.hpp
@@ -189,6 +189,9 @@ public:
/// Invokes ASSERT in case of nonexisting type
uint32_t GetTypeByPath(vector<string> const & path) const;
uint32_t GetTypeByPath(initializer_list<char const *> const & lst) const;
+ /// @see GetReadableObjectName().
+ /// @returns 0 in case of nonexisting type.
+ uint32_t GetTypeByReadableObjectName(string const & name) const;
//@}
uint32_t GetIndexForType(uint32_t t) const { return m_mapping.GetIndex(t); }