16 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHLEAFTOSTRIPRANGE_H__ 17 #define __IPSDKIMAGEPROCESSING_RULEMATCHLEAFTOSTRIPRANGE_H__ 19 #include <IPSDKImageProcessing/Rule/Strip/StripBinaryMixed/BaseRuleMatchStripRange.h> 27 template <
typename AttributeType,
typename LeafType>
39 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<LeafType::g_itemType>,
40 boost::mpl::int_<eDataItemType::eDIT_Leaf> >::type,
58 const boost::weak_ptr<const AttributeType>& pValueAttribute);
75 template <
typename AttributeType,
typename LeafType>
78 const boost::weak_ptr<const AttributeType>& pValueAttribute)
84 template <
typename AttributeType,
typename LeafType>
89 const AttributeType& derivedAttribute =
static_cast<const AttributeType&
>(getAttribute2());
91 return derivedAttribute.getNode().template getValue<LeafType>();
94 template <
typename AttributeType,
typename LeafType>
98 return ValueAttributeType::getObjectNameStr() +
"::" +
99 DataItemType::template getNodeNameStr<LeafType>();
108 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHLEAFTOSTRIPRANGE_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::string retrieveValueAttributeName() const
method allowing to retrieve value associated to attribute leaf in derived class
Definition: RuleMatchLeafToStripRange.h:96
AttributeType ValueAttributeType
Value attribute type.
Definition: RuleMatchLeafToStripRange.h:33
ValueAttributeType::ValueType DataItemType
retrieve DataItem node type associated to attribute
Definition: RuleMatchLeafToStripRange.h:36
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Rule class allowing to check that a DataItem leaf value is inside a strip buffer type value range...
Definition: RuleMatchLeafToStripRange.h:28
void initBase()
base class initialization method
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: RuleMatchLeafToStripRange.h:41
boost::weak_ptr< const BaseStripAttribute > StripAttributeConstWeakPtr
weak pointer to image strip attribute
Definition: StripAttributeTypes.h:80
ipReal64 retrieveValue() const
method allowing to retrieve value associated to attribute leaf in derived class
Definition: RuleMatchLeafToStripRange.h:86
void init(const StripAttributeConstWeakPtr &pStripAttribute, const boost::weak_ptr< const AttributeType > &pValueAttribute)
initialization of object
Definition: RuleMatchLeafToStripRange.h:77
Base class for rules allowing to check that a value is inside a strip buffer type value range...
Definition: BaseRuleMatchStripRange.h:27