-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcountry.cpp
More file actions
19 lines (19 loc) · 1.04 KB
/
country.cpp
File metadata and controls
19 lines (19 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// country graphs - we find countries that have regions with active or preview mileage
for (auto c = Region::countries.data(), dummy = c+Region::countries.size()-1; c < dummy; c++)
{ regions = new vector<Region*>;
// deleted @ end of HighwayGraph::write_subgraphs_tmg
for (Region& r : Region::allregions)
// does it match this country and have routes?
if (c == r.country && r.active_preview_mileage)
regions->push_back(&r);
// does it have at least two? if none, no data; if 1 we already generated a graph for that one region
if (regions->size() < 2) delete regions;
else { GraphListEntry::add_group(
c->first + "-country",
c->second + " All Routes in Country",
'c', regions, nullptr, nullptr, el);
}
}
graph_types.push_back({"country", "Routes Within a Single Multi-Region Country",
"These graphs contain the routes within a single country that is composed of multiple regions that contain plotted routes. " +
string("Countries consisting of a single region are represented by their regional graph.")});