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:
authorvng <viktor.govako@gmail.com>2013-12-03 17:24:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:08:08 +0300
commit55d0f1c27fc406da2acc2e041c6f651139e4a0e4 (patch)
treef416350050f3b1ffc9d08b242809b7f41adaa64f /indexer/classificator.hpp
parentea31feaa16e09b1e05938128292c9a9f0a2668e7 (diff)
Show more diagnostics in case of invalid categories.txt file.
Diffstat (limited to 'indexer/classificator.hpp')
-rw-r--r--indexer/classificator.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indexer/classificator.hpp b/indexer/classificator.hpp
index 1e36c7ee06..b30a1f3607 100644
--- a/indexer/classificator.hpp
+++ b/indexer/classificator.hpp
@@ -181,9 +181,14 @@ public:
void Clear();
- /// Return type by path in classificator tree, example:
+ /// Return type by path in classificator tree, for example
/// path = ["natural", "caostline"].
+ //@{
+ /// @return 0 in case of nonexisting type
+ uint32_t GetTypeByPathSafe(vector<string> const & path) const;
+ /// Shows ASSERT in case of nonexisting type
uint32_t GetTypeByPath(vector<string> const & path) const;
+ //@}
uint32_t GetIndexForType(uint32_t t) const { return m_mapping.GetIndex(t); }
uint32_t GetTypeForIndex(uint32_t i) const { return m_mapping.GetType(i); }