IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleOptionalIsSet.h
1 // RuleOptionalIsSet.h:
3 // --------------------
4 //
14 
15 #ifndef __IPSDKBASEPROCESSING_RULEOPTIONALISSET_H__
16 #define __IPSDKBASEPROCESSING_RULEOPTIONALISSET_H__
17 
18 #include <IPSDKBaseProcessing/Rule/Attribute/Optional/BaseOptionalRule.h>
19 
20 namespace ipsdk {
21 namespace processor {
22 
25 
27 {
28 // predefined public type
29 public:
31  static const eOptionalRuleType::domain g_optionalRuleType = eOptionalRuleType::eORT_IsSet;
32 
33 public:
39 
40 // methods
41 public:
43  eOptionalRuleType getOptionalRuleType() const;
44 
48  void init(const AttributeConstWeakPtr& pAttribute);
49 
50 protected:
52  bool testRule() const;
53 
55  std::string createRuleFormalString() const;
56 
58  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
59 };
60 
63 
64 inline eOptionalRuleType
66 {
67  return g_optionalRuleType;
68 }
69 
72 
73 } // end of namespace processor
74 } // end of namespace ipsdk
75 
76 #endif // __IPSDKBASEPROCESSING_RULEOPTIONALISSET_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
#define IPSDKBASEPROCESSING_API
Import/Export macro for library IPSDKBaseProcessing.
Definition: IPSDKBaseProcessingExports.h:27
static const eOptionalRuleType::domain g_optionalRuleType
optional rule type associated to rule
Definition: RuleOptionalIsSet.h:31
eOptionalRuleType
enumerate describing rule type associated to optional attributes
Definition: OptionalRuleTypes.h:32
Base class for rules on optional attributes.
Definition: BaseOptionalRule.h:27
eOptionalRuleType getOptionalRuleType() const
retrieve attribute rule operation type
Definition: RuleOptionalIsSet.h:65
Rule allowing to check that an optional attribute has been set.
Definition: OptionalRuleTypes.h:34
Rule allowing to check whether an optional attribute has been set.
Definition: RuleOptionalIsSet.h:26
boost::weak_ptr< const BaseAttribute > AttributeConstWeakPtr
weak pointer to const attribute object
Definition: AttributeTypes.h:61
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53