Re-factor URL parser: make grammar stateless

This commit is contained in:
Daniel J. Hofmann
2016-04-01 13:31:51 +02:00
committed by Patrick Niklaus
parent b25cd6aaf2
commit 6f0b6a8158
2 changed files with 70 additions and 76 deletions
+9 -4
View File
@@ -3,6 +3,8 @@
#include "util/coordinate.hpp"
#include <boost/fusion/include/adapt_struct.hpp>
#include <string>
#include <vector>
@@ -13,15 +15,18 @@ namespace server
namespace api
{
struct ParsedURL
struct ParsedURL final
{
std::string service;
unsigned version;
std::string profile;
std::string query;
};
}
}
}
} // api
} // server
} // osrm
BOOST_FUSION_ADAPT_STRUCT(osrm::server::api::ParsedURL, service, version, profile, query)
#endif