Enable all plugins with aStatus::Error return code fallback for not implemented ones
This commit is contained in:
committed by
Patrick Niklaus
parent
1895fee1c9
commit
bd371a11ad
+12
-7
@@ -47,27 +47,32 @@ struct Object;
|
||||
namespace engine
|
||||
{
|
||||
class Engine;
|
||||
|
||||
struct EngineConfig;
|
||||
namespace api
|
||||
{
|
||||
struct RouteParameters;
|
||||
struct TableParameters;
|
||||
struct NearestParameters;
|
||||
// struct TripParameters;
|
||||
// struct MatchParameters;
|
||||
struct TripParameters;
|
||||
struct MatchParameters;
|
||||
}
|
||||
}
|
||||
|
||||
// End fwd decls
|
||||
|
||||
using engine::EngineConfig;
|
||||
using engine::api::RouteParameters;
|
||||
using engine::api::TableParameters;
|
||||
using engine::api::NearestParameters;
|
||||
// using engine::api::TripParameters;
|
||||
// using engine::api::MatchParameters;
|
||||
using engine::api::TripParameters;
|
||||
using engine::api::MatchParameters;
|
||||
|
||||
namespace json = util::json;
|
||||
|
||||
class OSRM
|
||||
// OSRM API
|
||||
|
||||
class OSRM final
|
||||
{
|
||||
public:
|
||||
explicit OSRM(EngineConfig &config);
|
||||
@@ -79,8 +84,8 @@ class OSRM
|
||||
Status Route(const RouteParameters ¶meters, json::Object &result);
|
||||
Status Table(const TableParameters ¶meters, json::Object &result);
|
||||
Status Nearest(const NearestParameters ¶meters, json::Object &result);
|
||||
// Status Trip(const TripParameters ¶meters, json::Object &result);
|
||||
// Status Match(const MatchParameters ¶meters, json::Object &result);
|
||||
Status Trip(const TripParameters ¶meters, json::Object &result);
|
||||
Status Match(const MatchParameters ¶meters, json::Object &result);
|
||||
|
||||
private:
|
||||
std::unique_ptr<engine::Engine> engine_;
|
||||
|
||||
Reference in New Issue
Block a user