MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / writeTurnLaneData

Function writeTurnLaneData

include/extractor/files.hpp:291–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289// writes .osrm.tld
290template <typename TurnLaneDataT>
291inline void writeTurnLaneData(const std::filesystem::path &path,
292 const TurnLaneDataT &turn_lane_data)
293{
294 static_assert(
295 std::is_same<typename TurnLaneDataT::value_type, util::guidance::LaneTupleIdPair>::value,
296 "");
297
298 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
299 storage::tar::FileWriter writer{path, fingerprint};
300
301 storage::serialization::write(writer, "/common/turn_lanes/data", turn_lane_data);
302}
303
304// reads .osrm.timestamp
305template <typename TimestampDataT>

Callers 1

ProcessGuidanceTurnsMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected