osrm-backend/include/customizer/customizer_config.hpp

46 lines
1.0 KiB
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()
2017-08-14 17:24:33 -04:00
: IOConfig({".osrm.ebg",
".osrm.partition",
".osrm.cells",
".osrm.ebg_nodes",
2018-04-22 02:34:31 -04:00
".osrm.properties",
".osrm.enw"},
{},
{".osrm.cell_metrics", ".osrm.mldgr"}),
2017-06-28 11:53:54 -04:00
requested_num_threads(0)
{
}
2017-03-06 09:50:04 -05:00
void UseDefaultOutputNames(const boost::filesystem::path &base)
2017-03-06 09:50:04 -05:00
{
IOConfig::UseDefaultOutputNames(base);
updater_config.UseDefaultOutputNames(base);
2017-03-06 09:50:04 -05:00
}
unsigned requested_num_threads;
updater::UpdaterConfig updater_config;
2017-03-06 09:50:04 -05:00
};
} // namespace customizer
} // namespace osrm
2017-03-06 09:50:04 -05:00
#endif // OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP