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
|
|
|
{
|
2017-06-16 04:45:24 -04:00
|
|
|
CustomizationConfig()
|
2017-08-14 17:24:33 -04:00
|
|
|
: IOConfig({".osrm.ebg",
|
|
|
|
".osrm.partition",
|
|
|
|
".osrm.cells",
|
|
|
|
".osrm.ebg_nodes",
|
|
|
|
".osrm.properties"},
|
2017-07-24 20:05:15 -04:00
|
|
|
{},
|
|
|
|
{".osrm.cell_metrics", ".osrm.mldgr"}),
|
2017-06-28 11:53:54 -04:00
|
|
|
requested_num_threads(0)
|
2017-06-05 02:34:44 -04:00
|
|
|
{
|
|
|
|
}
|
2017-03-06 09:50:04 -05:00
|
|
|
|
2017-06-16 04:45:24 -04:00
|
|
|
void UseDefaultOutputNames(const boost::filesystem::path &base)
|
2017-03-06 09:50:04 -05:00
|
|
|
{
|
2017-06-16 04:45:24 -04:00
|
|
|
IOConfig::UseDefaultOutputNames(base);
|
|
|
|
updater_config.UseDefaultOutputNames(base);
|
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
|