2017-03-06 09:50:04 -05:00
|
|
|
#ifndef OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP
|
|
|
|
#define OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP
|
|
|
|
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <string>
|
|
|
|
|
2017-04-29 05:15:18 -04:00
|
|
|
#include "storage/io_config.hpp"
|
2017-05-05 04:23:09 -04:00
|
|
|
#include "updater/updater_config.hpp"
|
2017-04-29 05:15:18 -04:00
|
|
|
|
2017-03-06 09:50:04 -05:00
|
|
|
namespace osrm
|
|
|
|
{
|
2017-03-10 17:35:46 -05:00
|
|
|
namespace customizer
|
2017-03-06 09:50:04 -05:00
|
|
|
{
|
|
|
|
|
2017-04-29 05:15:18 -04:00
|
|
|
struct CustomizationConfig final : storage::IOConfig
|
2017-03-06 09:50:04 -05:00
|
|
|
{
|
|
|
|
CustomizationConfig() : requested_num_threads(0) {}
|
|
|
|
|
2017-04-29 05:15:18 -04:00
|
|
|
void UseDefaultOutputNames()
|
2017-03-06 09:50:04 -05:00
|
|
|
{
|
2017-04-29 05:15:18 -04:00
|
|
|
IOConfig::UseDefaultOutputNames();
|
2017-05-05 04:23:09 -04:00
|
|
|
updater_config.osrm_path = osrm_path;
|
2017-03-10 17:35:46 -05:00
|
|
|
updater_config.UseDefaultOutputNames();
|
2017-03-06 09:50:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned requested_num_threads;
|
2017-03-10 17:35:46 -05:00
|
|
|
|
|
|
|
updater::UpdaterConfig updater_config;
|
2017-03-06 09:50:04 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP
|