MantisBase v0.3.4
Loading...
Searching...
No Matches
mb::Expr Struct Reference

Struct instance for handling evaluation of database access rules. More...

#include <expr_evaluator.h>

Static Public Member Functions

static bool eval (const std::string &expr, const std::unordered_map< std::string, nlohmann::json > &vars={})
 Evaluates a given expression in a context of the given TokenMap variables.
 

Detailed Description

Struct instance for handling evaluation of database access rules.

Member Function Documentation

◆ eval()

bool mb::Expr::eval ( const std::string &  expr,
const std::unordered_map< std::string, nlohmann::json > &  vars = {} 
)
static

Evaluates a given expression in a context of the given TokenMap variables.

Parameters
exprAccess rule expression
varsParameter tokens
Returns
True or False

The documentation for this struct was generated from the following files: