IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleAllowedImageBaseType.h
1 // RuleAllowedImageBaseType.h:
3 // -----------------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEALLOWEDIMAGEBASETYPE_H__
16 #define __IPSDKIMAGEPROCESSING_RULEALLOWEDIMAGEBASETYPE_H__
17 
18 // suppression of warnings
19 // warning C4251: 'ipsdk::imaproc::RuleAllowedImageBaseType::_typeColl' : class 'std::set<_Kty>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::RuleAllowedImageBaseType'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKImageProcessing/Rule/Image/ImageProperty/BaseImagePropertyRule.h>
24 
25 namespace ipsdk {
26 namespace imaproc {
27 
30 
32 {
33 // predefined public type
34 public:
36  static const eImagePropertyRuleType::domain g_imagePropertyRuleType = eImagePropertyRuleType::eIPRT_AllowedBaseType;
37 
38  typedef std::set<image::eImageBaseType> ImageBaseTypeColl;
39 
40 public:
46 
47 // methods
48 public:
50  eImagePropertyRuleType getImagePropertyRuleType() const;
51 
55  void init(const ImageAttributeConstWeakPtr& pAttribute,
56  const image::eImageBaseType& type0);
57 
60  const ImageBaseTypeColl& getImageBaseTypeColl() const;
61 
62 protected:
64  bool testRule() const;
65 
67  std::string createRuleFormalString() const;
68 
70  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
71 
72 // attributes
73 protected:
75  ImageBaseTypeColl _typeColl;
76 };
77 
80 
83 {
85 }
86 
89 
90 } // end of namespace imaproc
91 } // end of namespace ipsdk
92 
93 #pragma warning (pop)
94 
95 #endif // __IPSDKIMAGEPROCESSING_RULEALLOWEDIMAGEBASETYPE_H__
eImageBaseType
Enumerate describing image base type.
Definition: ImageTypes.h:46
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
boost::weak_ptr< const BaseImageAttribute > ImageAttributeConstWeakPtr
Definition: ImageAttributeTypes.h:38
check image allowed base types
Definition: ImagePropertyRuleTypes.h:42
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
ImageBaseTypeColl _typeColl
collection of allowed types
Definition: RuleAllowedImageBaseType.h:75
eImagePropertyRuleType getImagePropertyRuleType() const
get image property rule type
Definition: RuleAllowedImageBaseType.h:82
Rule allowing to check allowed image base type for an attribute.
Definition: RuleAllowedImageBaseType.h:31
Base class for rules allowing to check property of an image attribute.
Definition: BaseImagePropertyRule.h:27
static const eImagePropertyRuleType::domain g_imagePropertyRuleType
image processing rule type associated to rule
Definition: RuleAllowedImageBaseType.h:36
eImagePropertyRuleType
enumerate describing image property rule operation type
Definition: ImagePropertyRuleTypes.h:34
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53