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

Function writeConditionalRestrictions

include/extractor/files.hpp:419–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417// writes .osrm.restrictions
418template <typename ConditionalRestrictionsT>
419inline void writeConditionalRestrictions(const std::filesystem::path &path,
420 const ConditionalRestrictionsT &conditional_restrictions)
421{
422 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
423 storage::tar::FileWriter writer{path, fingerprint};
424
425 serialization::write(writer, "/common/conditional_restrictions", conditional_restrictions);
426}
427
428// read .osrm.restrictions
429template <typename ConditionalRestrictionsT>

Callers 1

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected