BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Public Member Functions
BeeeOn::LogicalExpression Class Reference

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)
 

Detailed Description

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.

Member Function Documentation

bool LogicalExpression::result ( ) const

Evaluates the expression.

Returns
result of the expression

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