MantisBase v0.4.9
Loading...
Searching...
No Matches
expr_evaluator.h
Go to the documentation of this file.
1
5
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#include "types.h"
13
14namespace mb
15{
20 {
28 static bool eval(const std::string& expr, const nlohmann::json& vars = {});
29 };
30} // mb
31
32#endif //EXPR_EVALUATOR_H
#define MANTISBASE_API
Definition export.h:31
Definition api_keys.h:35
Struct instance for handling evaluation of database access rules.
Definition expr_evaluator.h:20
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
Core type aliases, handler signatures, and the MbAppMixin DI mixin.
Collection of utility functions that are re-used across different files.