16 #ifndef __IPSDKBASEPROCESSING_RULELEAFPROPERTY_H__ 17 #define __IPSDKBASEPROCESSING_RULELEAFPROPERTY_H__ 19 #include <IPSDKBaseProcessing/Rule/Attribute/DataItem/Leaf/LeafProperty/BaseTLeafPropertyRule.h> 27 template <
typename AttributeType,
29 eValuePropertyRuleType::domain ValuePropertyRuleType>
31 ValuePropertyRuleType>
36 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType::g_attributeType>,
37 boost::mpl::int_<eAttributeType::eAT_DataItem> >::type,
41 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<LeafType::g_itemType>,
42 boost::mpl::int_<eDataItemType::eDIT_Leaf> >::type,
57 void init(
const boost::weak_ptr<const AttributeType>& pAttribute);
75 template <
typename AttributeType,
typename LeafType, eValuePropertyRuleType::domain ValuePropertyRuleType>
83 template <
typename AttributeType,
typename LeafType, eValuePropertyRuleType::domain ValuePropertyRuleType>
87 return AttributeType::getObjectNameStr() +
"::" +
88 DataItemType::template getNodeNameStr<LeafType>();
91 template <
typename AttributeType,
typename LeafType, eValuePropertyRuleType::domain ValuePropertyRuleType>
96 const AttributeType& derivedAttribute =
static_cast<const AttributeType&
>(this->getAttribute1());
98 return derivedAttribute.getNode().template getValue<LeafType>();
107 #endif // __IPSDKBASEPROCESSING_RULELEAFPROPERTY_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Concrete class for rule allowing to check properties of leafs of data item attributes.
Definition: RuleLeafProperty.h:30
void init(const boost::weak_ptr< const AttributeType > &pAttribute)
initialization of object
Definition: RuleLeafProperty.h:77
void initBase()
base class initialization method
const ValueType & getAttributeValue() const
method allowing to retrieve attribute value into derived class
Definition: RuleLeafProperty.h:93
Base template class for rule allowing to check properties of leafs of data item attributes.
Definition: BaseTLeafPropertyRule.h:28
std::string getAttributeName() const
method allowing to retrieve attribute name into derived class
Definition: RuleLeafProperty.h:85
boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafType::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_Leaf > >::type, typename LeafType::ValueType >::type ValueType
Value type associated to leaf.
Definition: RuleLeafProperty.h:43
boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_DataItem > >::type, typename AttributeType::ValueType >::type DataItemType
retrieve attribute type
Definition: RuleLeafProperty.h:38