Provides ctor from base path for EngineConfig, fixes #2030

This commit is contained in:
Daniel J. Hofmann
2016-03-03 02:55:30 +01:00
committed by Patrick Niklaus
parent 58fb633df3
commit dc1b5d3424
2 changed files with 32 additions and 31 deletions
+15 -1
View File
@@ -41,6 +41,21 @@ namespace engine
struct EngineConfig
{
EngineConfig() = default;
EngineConfig(const boost::filesystem::path &base)
: server_paths{{"ramindex", base.string() + ".ramIndex"},
{"fileindex", base.string() + ".fileIndex"},
{"hsgrdata", base.string() + ".hsgr"},
{"nodesdata", base.string() + ".nodes"},
{"edgesdata", base.string() + ".edges"},
{"coredata", base.string() + ".core"},
{"geometries", base.string() + ".geometry"},
{"timestamp", base.string() + ".timestamp"},
{"namesdata", base.string() + ".names"}}
{
}
std::unordered_map<std::string, boost::filesystem::path> server_paths;
int max_locations_trip = -1;
int max_locations_viaroute = -1;
@@ -48,7 +63,6 @@ struct EngineConfig
int max_locations_map_matching = -1;
bool use_shared_memory = true;
};
}
}