2014-11-28 09:00:48 -05:00
|
|
|
#ifndef EXTRACTOR_OPTIONS_HPP
|
|
|
|
#define EXTRACTOR_OPTIONS_HPP
|
2014-08-29 09:45:12 -04:00
|
|
|
|
2015-02-09 11:38:40 -05:00
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
|
|
#include <string>
|
2014-08-29 09:45:12 -04:00
|
|
|
|
2015-01-23 10:59:13 -05:00
|
|
|
enum class return_code : unsigned
|
|
|
|
{
|
|
|
|
ok,
|
|
|
|
fail,
|
|
|
|
exit
|
|
|
|
};
|
|
|
|
|
2014-08-29 09:45:12 -04:00
|
|
|
struct ExtractorConfig
|
|
|
|
{
|
|
|
|
ExtractorConfig() noexcept : requested_num_threads(0) {}
|
|
|
|
boost::filesystem::path config_file_path;
|
|
|
|
boost::filesystem::path input_path;
|
|
|
|
boost::filesystem::path profile_path;
|
|
|
|
|
|
|
|
std::string output_file_name;
|
|
|
|
std::string restriction_file_name;
|
2015-05-09 11:21:36 -04:00
|
|
|
std::string names_file_name;
|
2014-08-29 09:45:12 -04:00
|
|
|
std::string timestamp_file_name;
|
2015-10-01 15:47:29 -04:00
|
|
|
std::string geometry_output_path;
|
|
|
|
std::string edge_output_path;
|
|
|
|
std::string edge_graph_output_path;
|
|
|
|
std::string node_output_path;
|
|
|
|
std::string rtree_nodes_output_path;
|
|
|
|
std::string rtree_leafs_output_path;
|
2015-01-23 10:28:27 -05:00
|
|
|
|
|
|
|
unsigned requested_num_threads;
|
2015-12-01 20:46:29 -05:00
|
|
|
unsigned small_component_size;
|
2015-10-14 18:08:22 -04:00
|
|
|
|
|
|
|
bool generate_edge_lookup;
|
|
|
|
std::string edge_penalty_path;
|
|
|
|
std::string edge_segment_lookup_path;
|
2015-10-14 18:08:22 -04:00
|
|
|
#ifdef DEBUG_GEOMETRY
|
|
|
|
std::string debug_turns_path;
|
|
|
|
#endif
|
2014-08-29 09:45:12 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ExtractorOptions
|
|
|
|
{
|
2015-01-23 10:59:13 -05:00
|
|
|
static return_code ParseArguments(int argc, char *argv[], ExtractorConfig &extractor_config);
|
2014-08-29 09:45:12 -04:00
|
|
|
|
|
|
|
static void GenerateOutputFilesNames(ExtractorConfig &extractor_config);
|
|
|
|
};
|
|
|
|
|
2014-11-28 09:00:48 -05:00
|
|
|
#endif // EXTRACTOR_OPTIONS_HPP
|