Implementation of internal data storage
This commit is contained in:
+1
-2
@@ -410,12 +410,11 @@ NodeID readDDSGGraphFromStream(std::istream &in, std::vector<EdgeT>& edgeList, s
|
||||
|
||||
template<typename NodeT, typename EdgeT>
|
||||
unsigned readHSGRFromStream(
|
||||
const std::string & hsgr_filename,
|
||||
const boost::filesystem::path & hsgr_file,
|
||||
std::vector<NodeT> & node_list,
|
||||
std::vector<EdgeT> & edge_list,
|
||||
unsigned * check_sum
|
||||
) {
|
||||
boost::filesystem::path hsgr_file(hsgr_filename);
|
||||
if ( !boost::filesystem::exists( hsgr_file ) ) {
|
||||
throw OSRMException("hsgr file does not exist");
|
||||
}
|
||||
|
||||
@@ -71,6 +71,10 @@ public:
|
||||
return parameters.Find(key);
|
||||
}
|
||||
|
||||
std::string GetParameter(const std::string & key) const {
|
||||
return parameters.Find(key);
|
||||
}
|
||||
|
||||
bool Holds(const std::string & key) const {
|
||||
return parameters.Holds(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user