3 #include <rapidjson/document.h> 22 bool check_depends(
const rapidjson::Value& depends_json, std::vector<DependsOutcome>& outcomes,
JsonRes& json_res) noexcept;
34 auto error = [&](
auto... args) {
return json_res.
error(args...); };
36 if (!json_req.IsArray())
39 std::vector<DependsOutcome> outcomes{};
40 outcomes.reserve(json_req.Size());
42 for (
const auto& action : json_req.GetArray()) {
44 outcomes.push_back(hdl(action));
DependsOutcome
Definition: depends.hpp:11
void error(int code)
Definition: json_utils.hpp:57
bool check_depends(const rapidjson::Value &depends_json, std::vector< DependsOutcome > &outcomes, JsonRes &json_res) noexcept
Definition: depends.cpp:4
Definition: json_utils.hpp:21
void handle_depends(const rapidjson::Value &json_req, JsonRes &json_res, Hdl &&hdl)
Definition: depends.hpp:33