osrm-backend/include/util/conditional_restrictions.hpp
Dennis Luxen a4aa153ba4 Use nested namespace
It's a mechanical change to modernize the code base
2022-12-11 10:17:17 +01:00

25 lines
621 B
C++

#ifndef OSRM_CONDITIONAL_RESTRICTIONS_HPP
#define OSRM_CONDITIONAL_RESTRICTIONS_HPP
#include <string>
#include <vector>
namespace osrm::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 osrm
#endif // OSRM_CONDITIONAL_RESTRICTIONS_HPP