instantiate different inherited class at bcp that provides all data

This commit is contained in:
Dennis Luxen 2013-09-17 18:37:08 +02:00
parent 18b57fa6aa
commit 5556dff11e

View File

@ -54,12 +54,17 @@ class OSRM : boost::noncopyable {
typedef boost::unordered_map<std::string, BasePlugin *> PluginMap;
QueryObjectsStorage * objects;
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();
void RunQuery(RouteParameters & route_parameters, http::Reply & reply);
private:
void RegisterPlugin(BasePlugin * plugin);
PluginMap pluginMap;
const bool use_shared_memory;
};
#endif //OSRM_H