IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleCustomCheckedImageProperty.h
1 // RuleCustomCheckedImageProperty.h:
3 // ---------------------------------
4 //
15 
16 #ifndef __IPSDKIMAGEPROCESSING_RULECUSTOMCHECKEDIMAGEPROPERTY_H__
17 #define __IPSDKIMAGEPROCESSING_RULECUSTOMCHECKEDIMAGEPROPERTY_H__
18 
19 // suppression warnings
20 // warning C4251: 'ipsdk::imaproc::RuleCustomCheckedImageProperty::_pCustomCheckedImageProperty' : class 'boost::shared_ptr<ipsdk::imaproc::BaseCustomCheckedImageProperty>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::RuleCustomCheckedImageProperty'
21 #pragma warning (push)
22 #pragma warning (disable : 4251)
23 
24 #include <IPSDKImageProcessing/Rule/Image/ImageProperty/BaseImagePropertyRule.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 
32 
34 {
35 // predefined public type
36 public:
38  static const eImagePropertyRuleType::domain g_imagePropertyRuleType = eImagePropertyRuleType::eIPRT_CustomProperty;
39 
40 public:
46 
47 // methods
48 public:
50  eImagePropertyRuleType getImagePropertyRuleType() const;
51 
57  void init(const ImageAttributeConstWeakPtr& pAttribute,
58  const CustomCheckedImagePropertyPtr& pCustomCheckedImageProperty);
59 
63  const BaseCustomCheckedImageProperty& getCustomCheckedImageProperty() const;
64 
65 protected:
67  bool testRule() const;
68 
70  std::string createRuleFormalString() const;
71 
73  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
74 
75 // attributes
76 protected:
79 };
80 
83 
86 {
88 }
89 
92 
93 } // end of namespace imaproc
94 } // end of namespace ipsdk
95 
96 #pragma warning (pop)
97 
98 #endif // __IPSDKIMAGEPROCESSING_RULECUSTOMCHECKEDIMAGEPROPERTY_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Rule allowing to check custom properties for an image attribute given a criterion defined by a derive...
Definition: RuleCustomCheckedImageProperty.h:33
boost::weak_ptr< const BaseImageAttribute > ImageAttributeConstWeakPtr
Definition: ImageAttributeTypes.h:38
CustomCheckedImagePropertyPtr _pCustomCheckedImageProperty
pointer to object allowing to define image checked properties
Definition: RuleCustomCheckedImageProperty.h:78
eImagePropertyRuleType getImagePropertyRuleType() const
get image property rule type
Definition: RuleCustomCheckedImageProperty.h:85
static const eImagePropertyRuleType::domain g_imagePropertyRuleType
image processing rule type associated to rule
Definition: RuleCustomCheckedImageProperty.h:38
boost::shared_ptr< BaseCustomCheckedImageProperty > CustomCheckedImagePropertyPtr
shared pointer to CustomCheckedImageProperty
Definition: CustomCheckedImagePropertyTypes.h:62
check image custom property defined by a derived class
Definition: ImagePropertyRuleTypes.h:52
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
Base class for custom checked image properties.
Definition: BaseCustomCheckedImageProperty.h:35
Base class for rules allowing to check property of an image attribute.
Definition: BaseImagePropertyRule.h:27
eImagePropertyRuleType
enumerate describing image property rule operation type
Definition: ImagePropertyRuleTypes.h:34
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53