IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleImageFormula.h
1 // RuleImageFormula.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEIMAGEFORMULA_H__
16 #define __IPSDKIMAGEPROCESSING_RULEIMAGEFORMULA_H__
17 
18 #include <IPSDKImageProcessing/Rule/Formula/BaseFormulaRule.h>
19 
20 namespace ipsdk {
21 namespace imaproc {
22 
25 
27 {
28 // predefined public type
29 public:
31  static const eFormulaRuleType::domain g_formulaRuleType = eFormulaRuleType::eFRT_Image;
32 
33 public:
39 
40 // methods
41 public:
43  eFormulaRuleType getFormulaRuleType() const;
44 
48  void init(const ImageFormulaAttributeConstWeakPtr& 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 // attributes
61 protected:
62 
63 };
64 
67 
68 inline eFormulaRuleType
70 {
71  return g_formulaRuleType;
72 }
73 
76 
77 } // end of namespace imaproc
78 } // end of namespace ipsdk
79 
80 #endif // __IPSDKIMAGEPROCESSING_RULEIMAGEFORMULA_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eFormulaRuleType
enumerate describing formula rule operation type
Definition: FormulaRuleTypes.h:33
Rule allowing to check that an image formula is valid.
Definition: RuleImageFormula.h:26
static const eFormulaRuleType::domain g_formulaRuleType
formula rule type associated to rule
Definition: RuleImageFormula.h:31
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
boost::weak_ptr< const BaseImageFormulaAttribute > ImageFormulaAttributeConstWeakPtr
Definition: FormulaAttributeTypes.h:54
rule allowing to check image formula syntax
Definition: FormulaRuleTypes.h:37
Base class for rules allowing to check formula properties.
Definition: BaseFormulaRule.h:28
eFormulaRuleType getFormulaRuleType() const
get formula rule type
Definition: RuleImageFormula.h:69
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53