IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseBinaryCombinationRule.h
1 // BaseBinaryCombinationRule.h:
3 // ----------------------------
4 //
14 
15 #ifndef __IPSDKBASEPROCESSING_BASEBINARYCOMBINATIONRULE_H__
16 #define __IPSDKBASEPROCESSING_BASEBINARYCOMBINATIONRULE_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::processor::BaseBinaryCombinationRule::_pRule1' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'ipsdk::processor::BaseBinaryCombinationRule'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKBaseProcessing/Rule/Combination/BaseCombinationRule.h>
24 
25 namespace ipsdk {
26 namespace processor {
27 
30 
32 {
33 public:
37  virtual ~BaseBinaryCombinationRule() = 0;
39 
40 // methods
41 public:
45  void init(const RulePtr& pRule1, const RulePtr& pRule2);
46 
50  const BaseRule& getRule1() const;
51  const BaseRule& getRule2() const;
53 
54 protected:
56  virtual bool testRule(const BaseRule& rule1,
57  const BaseRule& rule2) const = 0;
58 
59 private:
61  bool testRule() const;
62 
63 // attributes
64 private:
67  RulePtr _pRule1;
68  RulePtr _pRule2;
70 };
71 
74 
75 } // end of namespace processor
76 } // end of namespace ipsdk
77 
78 #pragma warning (pop)
79 
80 #endif // __IPSDKBASEPROCESSING_BASEBINARYCOMBINATIONRULE_H__
Base class for rules composed of an operation on two other rules.
Definition: BaseBinaryCombinationRule.h:31
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
#define IPSDKBASEPROCESSING_API
Import/Export macro for library IPSDKBaseProcessing.
Definition: IPSDKBaseProcessingExports.h:27
boost::shared_ptr< BaseRule > RulePtr
shared pointer to rule
Definition: RuleTypes.h:104
Base class for processing attributes rules.
Definition: BaseRule.h:41
Base class for rules composed of a combination of other rules.
Definition: BaseCombinationRule.h:27