IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleValueProperty.h
1 // RuleValueProperty.h:
3 // --------------------
4 //
15 
16 #ifndef __IPSDKBASEPROCESSING_RULEVALUEPROPERTY_H__
17 #define __IPSDKBASEPROCESSING_RULEVALUEPROPERTY_H__
18 
19 #include <IPSDKBaseProcessing/Rule/Attribute/Value/ValueProperty/BaseTValuePropertyRule.h>
20 
21 namespace ipsdk {
22 namespace processor {
23 
26 
27 template <typename AttributeType,
28  eValuePropertyRuleType::domain ValuePropertyRuleType>
29 class RuleValueProperty : public BaseTValuePropertyRule<typename AttributeType::ValueType,
30  ValuePropertyRuleType>
31 {
32 // predefined public types
33 public:
35  typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType::g_attributeType>,
36  boost::mpl::int_<eAttributeType::eAT_Value> >::type,
37  typename AttributeType::ValueType>::type ValueType;
38 
39 public:
43  ~RuleValueProperty() {}
45 
46 // methods
47 public:
51  void init(const boost::weak_ptr<const AttributeType>& pAttribute);
52 
53 // attributes
54 protected:
55 
56 };
57 
60 
61 template <typename AttributeType, eValuePropertyRuleType::domain ValuePropertyRuleType>
62 inline void
63 RuleValueProperty<AttributeType, ValuePropertyRuleType>::init(const boost::weak_ptr<const AttributeType>& pAttribute)
64 {
65  // call of base class initialization method
67 }
68 
71 
72 } // end of namespace processor
73 } // end of namespace ipsdk
74 
75 #endif // __IPSDKBASEPROCESSING_RULEVALUEPROPERTY_H__
void init(const boost::weak_ptr< const AttributeType > &pAttribute)
initialization of object
Definition: RuleValueProperty.h:63
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void initBase()
base class initialization method
Base template class for rules allowing to check attributes value properties.
Definition: BaseTValuePropertyRule.h:28
Concrete class for rules allowing to check attributes value properties.
Definition: RuleValueProperty.h:29
boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_Value > >::type, typename AttributeType::ValueType >::type ValueType
retrieve attribute type
Definition: RuleValueProperty.h:37