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>2014-01-08 14:44:31 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:09:48 +0300
commitcb62862b3460a4e1b5ccc7e31f1a6eaa2e185bdd (patch)
tree195338e3252888d8a63b310d7094c5ad687570bf /generator/feature_generator.cpp
parent2182deb16077d6cb771e76d7e339bb268a6dc422 (diff)
[generator] Additional visibility checks for generating World and countries.
Diffstat (limited to 'generator/feature_generator.cpp')
-rw-r--r--generator/feature_generator.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/generator/feature_generator.cpp b/generator/feature_generator.cpp
index d40ebfe78f..08a158e3e2 100644
--- a/generator/feature_generator.cpp
+++ b/generator/feature_generator.cpp
@@ -257,8 +257,11 @@ public:
class MainFeaturesEmitter
{
- scoped_ptr<Polygonizer<FeaturesCollector> > m_countries;
- scoped_ptr<WorldMapGenerator<FeaturesCollector> > m_world;
+ typedef WorldMapGenerator<FeaturesCollector> WorldGenerator;
+ typedef CountryMapGenerator<Polygonizer<FeaturesCollector> > CountriesGenerator;
+ scoped_ptr<CountriesGenerator> m_countries;
+ scoped_ptr<WorldGenerator> m_world;
+
scoped_ptr<CoastlineFeaturesGenerator> m_coasts;
scoped_ptr<FeaturesCollector> m_coastsHolder;
@@ -313,7 +316,7 @@ public:
if (!info.m_makeCoasts)
{
- m_countries.reset(new Polygonizer<FeaturesCollector>(info));
+ m_countries.reset(new CountriesGenerator(info));
if (info.m_emitCoasts)
{
@@ -332,7 +335,7 @@ public:
if (info.m_createWorld)
{
- m_world.reset(new WorldMapGenerator<FeaturesCollector>(info));
+ m_world.reset(new WorldGenerator(info));
}
}
@@ -402,9 +405,8 @@ public:
}
else if (m_coastsHolder)
{
- CombinedEmitter<
- FeaturesCollector,
- Polygonizer<FeaturesCollector> > emitter(m_coastsHolder.get(), m_countries.get());
+ CombinedEmitter<FeaturesCollector, CountriesGenerator>
+ emitter(m_coastsHolder.get(), m_countries.get());
feature::ForEachFromDatRawFormat(m_srcCoastsFile, emitter);
}
@@ -414,7 +416,7 @@ public:
inline void GetNames(vector<string> & names) const
{
if (m_countries)
- names = m_countries->Names();
+ names = m_countries->Parent().Names();
else
names.clear();
}