osrm-backend/include/customizer/customizer_config.hpp

44 lines
899 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()
2017-06-28 11:53:54 -04:00
: IOConfig(
{
".osrm",
},
{},
2017-06-28 11:53:54 -04:00
{".osrm.ebg", ".osrm.partition", ".osrm.cells", ".osrm.mldgr"}),
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
};
}
}
#endif // OSRM_CUSTOMIZE_CUSTOMIZER_CONFIG_HPP