#include <LogicalExpressions.h>
Public Member Functions | |
LogicalExpressions () | |
C'tor. | |
virtual | ~LogicalExpressions () |
Virtual d'tor. | |
void | addCondition (const std::string &name, const std::string &expression) |
Add a new named logical expression formed out of [!,(,&&,||,),value], e.g. ( A && ( B || !C ) ) || ( !B && D ). | |
void | clear () |
Clear all boolean values. | |
bool | conditionIsTrue (const std::string &name) |
True if the named condition (stored with addCondition) is true with the current values. | |
bool | expressionIsTrue (const std::string &expression) |
True if the given expression is true with the current values. | |
void | setValue (const std::string &key, bool val) |
Set the the boolean value for the given key. | |
Protected Attributes | |
ConditionsMap | _condMap |
ResultMap | _resultMap |