instantiate different inherited class at bcp that provides all data
This commit is contained in:
parent
18b57fa6aa
commit
5556dff11e
@ -54,12 +54,17 @@ class OSRM : boost::noncopyable {
|
|||||||
typedef boost::unordered_map<std::string, BasePlugin *> PluginMap;
|
typedef boost::unordered_map<std::string, BasePlugin *> PluginMap;
|
||||||
QueryObjectsStorage * objects;
|
QueryObjectsStorage * objects;
|
||||||
public:
|
public:
|
||||||
OSRM(boost::unordered_map<const std::string,boost::filesystem::path>& paths);
|
OSRM(
|
||||||
|
boost::unordered_map<const std::string,
|
||||||
|
boost::filesystem::path>& paths,
|
||||||
|
const bool use_shared_memory = false
|
||||||
|
);
|
||||||
~OSRM();
|
~OSRM();
|
||||||
void RunQuery(RouteParameters & route_parameters, http::Reply & reply);
|
void RunQuery(RouteParameters & route_parameters, http::Reply & reply);
|
||||||
private:
|
private:
|
||||||
void RegisterPlugin(BasePlugin * plugin);
|
void RegisterPlugin(BasePlugin * plugin);
|
||||||
PluginMap pluginMap;
|
PluginMap pluginMap;
|
||||||
|
const bool use_shared_memory;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //OSRM_H
|
#endif //OSRM_H
|
||||||
|
Loading…
Reference in New Issue
Block a user