First take at distance table API re-write
This commit is contained in:
committed by
Patrick Niklaus
parent
b58edc980c
commit
d87a19b2f9
+12
-6
@@ -49,24 +49,30 @@ struct EngineConfig;
|
||||
namespace api
|
||||
{
|
||||
struct RouteParameters;
|
||||
struct TableParameters;
|
||||
}
|
||||
}
|
||||
|
||||
using engine::EngineConfig;
|
||||
using engine::api::RouteParameters;
|
||||
using engine::api::TableParameters;
|
||||
namespace json = util::json;
|
||||
|
||||
class OSRM
|
||||
{
|
||||
public:
|
||||
explicit OSRM(EngineConfig &config);
|
||||
~OSRM();
|
||||
|
||||
OSRM(OSRM &&) noexcept;
|
||||
OSRM &operator=(OSRM &&) noexcept;
|
||||
|
||||
Status Route(const RouteParameters ¶meters, json::Object &result);
|
||||
Status Table(const TableParameters ¶meters, json::Object &result);
|
||||
|
||||
private:
|
||||
std::unique_ptr<engine::Engine> engine_;
|
||||
|
||||
public:
|
||||
OSRM(EngineConfig &lib_config);
|
||||
~OSRM(); // needed for unique_ptr + impl abstraction
|
||||
Status Route(const RouteParameters &route_parameters, json::Object &json_result);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // OSRM_HPP
|
||||
|
||||
Reference in New Issue
Block a user