DCMTK Version 3.7.1
OFFIS DICOM Toolkit
Loading...
Searching...
No Matches
MdfCondition Class Reference

class reflecting a condition check More...

Public Member Functions

 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.

Public Attributes

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.

Detailed Description

class reflecting a condition check

Constructor & Destructor Documentation

◆ MdfCondition()

MdfCondition::MdfCondition ( const MdfCondition & other)

Copy Constructor.

Parameters
otherinitialise this condition with values from the other condition

References MdfCondition().

Member Function Documentation

◆ isEqualityCheck()

OFBool MdfCondition::isEqualityCheck ( OFBool group = OFTrue) const

Returns whether the condition is a (Non-)Equality check.

Parameters
groupindicates 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
groupindicates 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
equalindicates 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
equalindicates whether to test for lesser or lesser equal
Returns
true if condition represents the requested check

◆ operator=()

MdfCondition & MdfCondition::operator= ( const MdfCondition & c)

Assignment operator.

Parameters
cassign c to this condition
Returns
reference to this condition

References MdfCondition().

◆ operator==()

OFBool MdfCondition::operator== ( const MdfCondition & c) const

Comparison operator between Conditions.

Parameters
cthe 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

Member Data Documentation

◆ operation

OFString MdfCondition::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:


Generated on for DCMTK Version 3.7.1 by Doxygen 1.18.0