Re-factor URL parser: make grammar stateless
This commit is contained in:
committed by
Patrick Niklaus
parent
b25cd6aaf2
commit
6f0b6a8158
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user