IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ArithmeticFormulaMsrInfo.h
1 // ArithmeticFormulaMsrInfo.h:
3 // ---------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_ARITHMETICFORMULAMSRINFO_H__
17 #define __IPSDKIPLSHAPEANALYSIS_ARITHMETICFORMULAMSRINFO_H__
18 
20 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Formula/ArithmeticFormula/ArithmeticFormulaMsrParams.h>
23 
24 namespace ipsdk {
25 namespace imaproc {
26 namespace shape {
27 namespace analysis {
28 
31 
32 // declare a measure information
34  ArithmeticFormula,
36  IPSDK_MEASURE_NO_DEPENDENCY,
37  eMUF_NoUnit)
38 
39 // methods
40 public:
42  static void setFormulaDebugMode(const bool bDebugMode);
43  static bool getFormulaDebugMode();
44 
45 protected:
47  BoolResult validateMsrParams(const bool b2dMsrMode, const DataItemConstPtr& pMeasureParams) const;
48 
50  void createCustomDependencies(const bool b2dMsrMode);
51 
52 // attributs
53 protected:
55  static bool g_bDebugMode;
56 };
57 
60 
61 inline void
62 ArithmeticFormulaMsrInfo::setFormulaDebugMode(const bool bDebugMode)
63 {
64  g_bDebugMode = bDebugMode;
65 }
66 
67 inline bool
68 ArithmeticFormulaMsrInfo::getFormulaDebugMode()
69 {
70  return g_bDebugMode;
71 }
72 
75 
76 } // end of namespace analysis
77 } // end of namespace shape
78 } // end of namespace imaproc
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKIPLSHAPEANALYSIS_ARITHMETICFORMULAMSRINFO_H__
#define IPSDK_DECLARE_GENERIC_MEASURE_INFO_WITH_PARAMS(libraryName, msrName, msrResultType, msrDependSeq, msrUnitFormat)
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
Definition of import/export macro for library.