MantisBase v0.3.5
Loading...
Searching...
No Matches
expr_evaluator.h
Go to the documentation of this file.
1
6#ifndef EXPR_EVALUATOR_H
7#define EXPR_EVALUATOR_H
8
9#include <string>
10#include <nlohmann/json_fwd.hpp>
11#include "../utils/utils.h"
12
13namespace mb
14{
18 struct Expr
19 {
27 static bool eval(const std::string& expr, const nlohmann::json& vars = {});
28 };
29} // mb
30
31#endif //EXPR_EVALUATOR_H
router.h
Definition auth.h:16
Struct instance for handling evaluation of database access rules.
Definition expr_evaluator.h:19
static bool eval(const std::string &expr, const nlohmann::json &vars={})
Evaluates a given expression in a context of the given TokenMap variables.
Definition expr_evaluator.cpp:8