IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseUnaryCombinationRule.h
1 // BaseUnaryCombinationRule.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKBASEPROCESSING_BASEUNARYCOMBINATIONRULE_H__
16 #define __IPSDKBASEPROCESSING_BASEUNARYCOMBINATIONRULE_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::processor::BaseUnaryCombinationRule::_pRule' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'ipsdk::processor::BaseUnaryCombinationRule'
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 ~BaseUnaryCombinationRule() = 0;
39 
40 // methods
41 public:
45  void init(const RulePtr& pRule);
46 
49  const BaseRule& getRule() const;
50 
51 protected:
53  virtual bool testRule(const BaseRule& rule) const = 0;
54 
55 private:
57  bool testRule() const;
58 
59 // attributes
60 private:
62  RulePtr _pRule;
63 };
64 
67 
68 } // end of namespace processor
69 } // end of namespace ipsdk
70 
71 #pragma warning (pop)
72 
73 #endif // __IPSDKBASEPROCESSING_BASEUNARYCOMBINATIONRULE_H__
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 rules composed of an operation on another rule.
Definition: BaseUnaryCombinationRule.h:31
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