osrm-backend/include/customizer/customizer_config.hpp

39 lines
814 B
C++
Raw Normal View History

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>
#include "storage/io_config.hpp"
#include "updater/updater_config.hpp"
2017-03-06 09:50:04 -05:00
namespace osrm
{
namespace customizer
2017-03-06 09:50:04 -05:00
{
struct CustomizationConfig final : storage::IOConfig
2017-03-06 09:50:04 -05:00
{
CustomizationConfig() : requested_num_threads(0),
IOConfig({".osrm", }, {}, {".osrm.ebg", ".osrm.partition", ".osrm.cells", ".osrm.mldgr"})
{
}
2017-03-06 09:50:04 -05:00
void UseDefaultOutputNames()
2017-03-06 09:50:04 -05:00
{
IOConfig::UseDefaultOutputNames();
updater_config.osrm_path = osrm_path;
updater_config.UseDefaultOutputNames();
2017-03-06 09:50:04 -05:00
}
unsigned requested_num_threads;
updater::UpdaterConfig updater_config;
2017-03-06 09:50:04 -05:00
};
}
}
#endif // OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP