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

Function write

include/guidance/serialization.hpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <storage::Ownership Ownership>
31inline void write(storage::tar::FileWriter &writer,
32 const std::string &name,
33 const guidance::detail::TurnDataContainerImpl<Ownership> &turn_data_container)
34{
35 storage::serialization::write(
36 writer, name + "/turn_instructions", turn_data_container.turn_instructions);
37 storage::serialization::write(
38 writer, name + "/lane_data_ids", turn_data_container.lane_data_ids);
39 storage::serialization::write(
40 writer, name + "/entry_class_ids", turn_data_container.entry_class_ids);
41 storage::serialization::write(
42 writer, name + "/pre_turn_bearings", turn_data_container.pre_turn_bearings);
43 storage::serialization::write(
44 writer, name + "/post_turn_bearings", turn_data_container.post_turn_bearings);
45}
46} // namespace osrm::guidance::serialization
47
48#endif

Callers 1

writeTurnDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected