osrm-backend/include/util/conditional_restrictions.hpp
Daniel Patterson 50d9632ed7
Upgrade formatting to clang-format 10 (#5895)
* Update formatting tools to clang-format-10

* Reformat using clang-format-10.0.09
2020-11-26 07:21:39 -08:00

28 lines
652 B
C++

#ifndef OSRM_CONDITIONAL_RESTRICTIONS_HPP
#define OSRM_CONDITIONAL_RESTRICTIONS_HPP
#include <string>
#include <vector>
namespace osrm
{
namespace util
{
// Helper functions for OSM conditional restrictions
// http://wiki.openstreetmap.org/wiki/Conditional_restrictions
// Consitional restrictions is a vector of ConditionalRestriction
// with a restriction value and a condition string
struct ConditionalRestriction
{
std::string value;
std::string condition;
};
std::vector<ConditionalRestriction> ParseConditionalRestrictions(const std::string &str);
} // namespace util
} // namespace osrm
#endif // OSRM_CONDITIONAL_RESTRICTIONS_HPP