BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Representation of a logical expression in form: left
operator right
. The operator can be on of:
More...
#include <LogicalExpression.h>
Public Types | |
enum | Op { OP_EQUAL, OP_NOT_EQUAL } |
Public Member Functions | |
LogicalExpression (const std::string &left, const std::string &right, const Op op) | |
bool | result () const |
Evaluates the expression. More... | |
std::string | left () const |
std::string | right () const |
Op | op () const |
Static Public Member Functions | |
static LogicalExpression | parse (const std::string &input) |
Representation of a logical expression in form: left
operator right
. The operator can be on of:
The left
and right
parts are strings without whitespace.
bool LogicalExpression::result | ( | ) | const |
Evaluates the expression.