28 proto::MapBuilderServerOptions map_builder_server_options;
29 map_builder_server_options.set_server_address(
30 lua_parameter_dictionary->
GetString(
"server_address"));
31 map_builder_server_options.set_num_grpc_threads(
32 lua_parameter_dictionary->
GetInt(
"num_grpc_threads"));
33 map_builder_server_options.set_num_event_threads(
34 lua_parameter_dictionary->
GetInt(
"num_event_threads"));
35 *map_builder_server_options.mutable_map_builder_options() =
37 lua_parameter_dictionary->
GetDictionary(
"map_builder").get());
38 map_builder_server_options.set_uplink_server_address(
39 lua_parameter_dictionary->
GetString(
"uplink_server_address"));
40 map_builder_server_options.set_upload_batch_size(
41 lua_parameter_dictionary->
GetInt(
"upload_batch_size"));
42 map_builder_server_options.set_enable_ssl_encryption(
43 lua_parameter_dictionary->
GetBool(
"enable_ssl_encryption"));
44 return map_builder_server_options;
48 const std::string& configuration_directory,
49 const std::string& configuration_basename) {
50 auto file_resolver = common::make_unique<common::ConfigurationFileResolver>(
51 std::vector<std::string>{configuration_directory});
52 const std::string code =
53 file_resolver->GetFileContentOrDie(configuration_basename);
55 code, std::move(file_resolver));
std::string GetString(const std::string &key)
proto::MapBuilderOptions CreateMapBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::MapBuilderServerOptions LoadMapBuilderServerOptions(const std::string &configuration_directory, const std::string &configuration_basename)
proto::MapBuilderServerOptions CreateMapBuilderServerOptions(common::LuaParameterDictionary *lua_parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const std::string &key)
bool GetBool(const std::string &key)
int GetInt(const std::string &key)