osrm-backend/Extractor/Extractor.h

37 lines
846 B
C
Raw Normal View History

2014-07-02 09:07:27 -04:00
#ifndef EXTRACTOR_H_
#define EXTRACTOR_H_
2014-07-02 08:05:37 -04:00
#include <boost/filesystem.hpp>
2014-07-10 08:45:59 -04:00
#include <string>
2014-07-02 08:05:37 -04:00
class ExtractorCallbacks;
/** \brief Class of 'extract' utility. */
class Extractor
{
2014-07-10 08:45:59 -04:00
protected:
2014-07-02 08:05:37 -04:00
unsigned requested_num_threads;
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;
bool file_has_pbf_format;
/** \brief Parses "extractor's" command line arguments */
bool ParseArguments(int argc, char *argv[]);
/** \brief Parses config file, if present in options */
void GenerateOutputFilesNames();
2014-07-10 08:45:59 -04:00
public:
explicit Extractor();
Extractor(const Extractor &) = delete;
2014-07-02 08:05:37 -04:00
virtual ~Extractor();
2014-07-10 08:45:59 -04:00
int Run(int argc, char *argv[]);
2014-07-02 08:05:37 -04:00
};
2014-07-02 09:07:27 -04:00
#endif /* EXTRACTOR_H_ */