class reflecting a condition check
More...
|
|
| MdfCondition () |
| | Constructor, initializes all members with empty strings.
|
| | MdfCondition (const MdfCondition &other) |
| | Copy Constructor.
|
| OFBool | operator== (const MdfCondition &c) const |
| | Comparison operator between Conditions.
|
| MdfCondition & | operator= (const MdfCondition &c) |
| | Assignment operator.
|
| OFBool | isExistenceCheck (OFBool group=OFTrue) const |
| | Returns whether the condition is a (Non-)Existence check.
|
| OFBool | isEqualityCheck (OFBool group=OFTrue) const |
| | Returns whether the condition is a (Non-)Equality check.
|
| OFBool | isLesserCheck (OFBool equal=OFFalse) const |
| | Returns whether the condition is a "Lesser than"-based check.
|
| OFBool | isGreaterCheck (OFBool equal=OFFalse) const |
| | Returns whether the condition is a "Greater than"-based check.
|
| OFString | toString () const |
| | Returns a string representation of the condition.
|
|
|
OFString | option |
| | The option of the comparison, right now always "iff" for condition checks.
|
|
OFString | path |
| | The path for the condition check.
|
| OFString | operation |
| | Operator for the condition check.
|
|
OFString | value |
| | Value to compare to, not existing for (non-)existence checks.
|
class reflecting a condition check
◆ MdfCondition()
Copy Constructor.
- Parameters
-
| other | initialise this condition with values from the other condition |
References MdfCondition().
◆ isEqualityCheck()
| OFBool MdfCondition::isEqualityCheck |
( |
OFBool | group = OFTrue | ) |
const |
Returns whether the condition is a (Non-)Equality check.
- Parameters
-
| group | indicates whether we want to test for "=" only (false) or both, "=" and "!=" (true) |
- Returns
- true if condition represents the requested check
◆ isExistenceCheck()
| OFBool MdfCondition::isExistenceCheck |
( |
OFBool | group = OFTrue | ) |
const |
Returns whether the condition is a (Non-)Existence check.
- Parameters
-
| group | indicates whether we want to test for "E" only (false) or both, "E" or "!" (true) |
- Returns
- true if condition represents the requested check
◆ isGreaterCheck()
| OFBool MdfCondition::isGreaterCheck |
( |
OFBool | equal = OFFalse | ) |
const |
Returns whether the condition is a "Greater than"-based check.
- Parameters
-
| equal | indicates whether to test for greater or greater equal |
- Returns
- true if condition represents the requested check
◆ isLesserCheck()
| OFBool MdfCondition::isLesserCheck |
( |
OFBool | equal = OFFalse | ) |
const |
Returns whether the condition is a "Lesser than"-based check.
- Parameters
-
| equal | indicates whether to test for lesser or lesser equal |
- Returns
- true if condition represents the requested check
◆ operator=()
Assignment operator.
- Parameters
-
| c | assign c to this condition |
- Returns
- reference to this condition
References MdfCondition().
◆ operator==()
| OFBool MdfCondition::operator== |
( |
const MdfCondition & | c | ) |
const |
Comparison operator between Conditions.
- Parameters
-
| c | the other condition to compare to |
- Returns
- true if c is equal to this, false otherwise
References MdfCondition().
◆ toString()
| OFString MdfCondition::toString |
( |
| ) |
const |
Returns a string representation of the condition.
- Returns
- string representation of the condition
◆ operation
Operator for the condition check.
Possible checking operations are:
- Existence check (coded as "E")
- Non-Existence check (coded as "!")
- Equality check (coded as "=")
- Non-Equality check (coded as "!=")
- Lesser and Lesser-equal check (coded as "<" and "<=")
- Greater than and Greater-equal check (coded as ">" and ">=")
The documentation for this class was generated from the following file: