Enable all plugins with aStatus::Error return code fallback for not implemented ones
This commit is contained in:
committed by
Patrick Niklaus
parent
9578b9a045
commit
6a77ac442e
@@ -29,16 +29,16 @@ namespace api
|
||||
struct RouteParameters;
|
||||
struct TableParameters;
|
||||
struct NearestParameters;
|
||||
// struct TripParameters;
|
||||
// struct MatchParameters;
|
||||
struct TripParameters;
|
||||
struct MatchParameters;
|
||||
}
|
||||
namespace plugins
|
||||
{
|
||||
class ViaRoutePlugin;
|
||||
class TablePlugin;
|
||||
class NearestPlugin;
|
||||
// class TripPlugin;
|
||||
// class MatchPlugin;
|
||||
class TripPlugin;
|
||||
class MatchPlugin;
|
||||
}
|
||||
// End fwd decls
|
||||
|
||||
@@ -64,8 +64,8 @@ class Engine final
|
||||
Status Route(const api::RouteParameters ¶meters, util::json::Object &result);
|
||||
Status Table(const api::TableParameters ¶meters, util::json::Object &result);
|
||||
Status Nearest(const api::NearestParameters ¶meters, util::json::Object &result);
|
||||
// Status Trip(const api::TripParameters ¶meters, util::json::Object &result);
|
||||
// Status Match(const api::MatchParameters ¶meters, util::json::Object &result);
|
||||
Status Trip(const api::TripParameters ¶meters, util::json::Object &result);
|
||||
Status Match(const api::MatchParameters ¶meters, util::json::Object &result);
|
||||
|
||||
private:
|
||||
std::unique_ptr<EngineLock> lock;
|
||||
|
||||
+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