16 #ifndef __IPSDKBASEPROCESSING_BASETLEAFVALUECOMPARISONRULE_H__ 17 #define __IPSDKBASEPROCESSING_BASETLEAFVALUECOMPARISONRULE_H__ 21 #pragma warning (push) 22 #pragma warning (disable : 4251) 24 #include <IPSDKBaseProcessing/Rule/Attribute/DataItem/Leaf/LeafValueComparison/BaseLeafValueComparisonRule.h> 32 template <
typename T, eValueComparisonRuleType::domain ValueComparisonRuleType>
41 static const eValueComparisonRuleType::domain g_valueComparisonRuleType = ValueComparisonRuleType;
58 const T& getValue()
const;
68 virtual std::string getAttributeName()
const = 0;
71 virtual T getAttributeValue()
const = 0;
75 bool testRule()
const;
78 std::string createRuleFormalString()
const;
81 std::string createRuleEvaluatedString(
const ipUInt32 increment)
const;
92 template <
typename T, eValueComparisonRuleType::domain ValueComparisonRuleType>
96 return g_valueComparisonRuleType;
105 #pragma warning (pop) 107 #endif // __IPSDKBASEPROCESSING_BASETLEAFVALUECOMPARISONRULE_H__ T ValueType
underlying type associated to attribute
Definition: BaseTLeafValueComparisonRule.h:38
T _value
value associated to rule
Definition: BaseTLeafValueComparisonRule.h:86
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
#define IPSDKBASEPROCESSING_API
Import/Export macro for library IPSDKBaseProcessing.
Definition: IPSDKBaseProcessingExports.h:27
eValueComparisonRuleType
enumerate describing value comparison rule operation type
Definition: RuleTypes.h:56
Base template class for rule allowing to compare leaf value of data item attributes with a given valu...
Definition: BaseTLeafValueComparisonRule.h:33
eValueComparisonRuleType getValueComparisonRuleType() const
retrieve value comparison rule operation type
Definition: BaseTLeafValueComparisonRule.h:94
Base class for rule allowing to compare leaf value of data item attributes with a given value...
Definition: BaseLeafValueComparisonRule.h:27
boost::weak_ptr< const BaseAttribute > AttributeConstWeakPtr
weak pointer to const attribute object
Definition: AttributeTypes.h:61
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53