IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleMeasureFormula.h
1 // RuleMeasureFormula.h:
3 // ---------------------
4 //
15 
16 #ifndef __IPSDKIMAGEPROCESSING_RULEMEASUREFORMULA_H__
17 #define __IPSDKIMAGEPROCESSING_RULEMEASUREFORMULA_H__
18 
19 // suppression warning
20 // warning C4251: 'ipsdk::imaproc::RuleMeasureFormula::_targetResultType' : class 'ipsdk::shape::analysis::eMsrFormulaResultType' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::RuleMeasureFormula'
21 #pragma warning (push)
22 #pragma warning (disable : 4251)
23 
24 #include <IPSDKImageProcessing/Rule/Formula/BaseFormulaRule.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 
32 
34 {
35 // predefined public type
36 public:
38  static const eFormulaRuleType::domain g_formulaRuleType = eFormulaRuleType::eFRT_Measure;
39 
40 public:
46 
47 // methods
48 public:
50  eFormulaRuleType getFormulaRuleType() const;
51 
55  void init(const MeasureFormulaAttributeConstWeakPtr& pAttribute,
56  const ipsdk::shape::analysis::eMsrFormulaResultType& targetResultType);
57 
61  ipsdk::shape::analysis::eMsrFormulaResultType getTargetResultType() const;
62 
63 protected:
65  bool testRule() const;
66 
68  std::string createRuleFormalString() const;
69 
71  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
72 
73 // attributes
74 protected:
77 };
78 
81 
82 inline eFormulaRuleType
84 {
85  return g_formulaRuleType;
86 }
87 
90 
91 } // end of namespace imaproc
92 } // end of namespace ipsdk
93 
94 #pragma warning (pop)
95 
96 #endif // __IPSDKIMAGEPROCESSING_RULEMEASUREFORMULA_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eFormulaRuleType
enumerate describing formula rule operation type
Definition: FormulaRuleTypes.h:33
Predefined types for shape analysis formula management.
Rule allowing to check that a formula is associated to valid for a given measure type.
Definition: RuleMeasureFormula.h:33
static const eFormulaRuleType::domain g_formulaRuleType
formula rule type associated to rule
Definition: RuleMeasureFormula.h:38
eMsrFormulaResultType
Enumerate describing measure formula result type.
Definition: FormulaTypes.h:211
eFormulaRuleType getFormulaRuleType() const
get formula rule type
Definition: RuleMeasureFormula.h:83
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
boost::weak_ptr< const BaseMeasureFormulaAttribute > MeasureFormulaAttributeConstWeakPtr
Definition: FormulaAttributeTypes.h:66
ipsdk::shape::analysis::eMsrFormulaResultType _targetResultType
target formula measure result type for rule
Definition: RuleMeasureFormula.h:76
Base class for rules allowing to check formula properties.
Definition: BaseFormulaRule.h:28
rule allowing to check measure formula syntax
Definition: FormulaRuleTypes.h:35
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53