IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
DynamicProcessorDispatcher.h
1 // DynamicProcessorDispatcher.h:
3 // -----------------------------
4 //
15 
16 #ifndef __IPSDKBASEPROCESSING_DYNAMICPROCESSORDISPATCHER_H__
17 #define __IPSDKBASEPROCESSING_DYNAMICPROCESSORDISPATCHER_H__
18 
19 #include <IPSDKBaseProcessing/ProcessorDispatcher/Dynamic/BaseDynamicProcessorDispatcher.h>
21 #include <boost/make_shared.hpp>
22 
23 namespace ipsdk {
24 namespace processor {
25 
28 
29 template <typename TProcessor>
31 {
32 // predefined public types
33 public:
35  typedef TProcessor ProcessorType;
36 
39 
40 public:
46 
47 // methods
48 public:
50  const std::string& getProcessorName() const;
51 
53  const std::string& getProcessorToolTip() const;
54 
58 
59 protected:
62 
63 // attributes
64 protected:
65 
66 };
67 
70 
71 template <typename TProcessor>
73 {
74 
75 }
76 
77 template <typename TProcessor>
79 {
80 
81 }
82 
83 template <typename TProcessor>
84 inline const std::string&
86 {
87  return TProcessor::getObjectNameStr();
88 }
89 
90 template <typename TProcessor>
91 inline const std::string&
93 {
94  return TProcessor::getToolTipStr();
95 }
96 
97 template <typename TProcessor>
98 inline ProcessorPtr
100 {
101  return boost::make_shared<TProcessor>();
102 }
103 
106 
107 } // end of namespace processor
108 } // end of namespace ipsdk
109 
110 #endif // __IPSDKBASEPROCESSING_DYNAMICPROCESSORDISPATCHER_H__
Macros set for processor dispatcher management.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
ProcessorPtr createProcessor() const
initialization method for class
Definition: DynamicProcessorDispatcher.h:99
#define IPSDK_DEFINE_DISPATCHER_INIT_FUNCTION()
macro allowing to define dispatcher init functions
Definition: ProcessorDispatcherMacros.h:103
const std::string & getProcessorToolTip() const
retrieve processor tooltip associated to dispatch operation
Definition: DynamicProcessorDispatcher.h:92
Base class for processor operations dispatching with dynamic split operation types.
Definition: BaseDynamicProcessorDispatcher.h:34
boost::shared_ptr< BaseProcessor > ProcessorPtr
shared pointer to processor class
Definition: ProcessorTypes.h:106
BaseDynamicProcessorDispatcher BaseDispatcherType
base class associated to dispatcher class
Definition: DynamicProcessorDispatcher.h:38
TProcessor ProcessorType
processor type associated to object
Definition: DynamicProcessorDispatcher.h:35
const std::string & getProcessorName() const
retrieve processor name associated to dispatch operation
Definition: DynamicProcessorDispatcher.h:85
Base class for processor operations dispatching with dynamic split operation types.
Definition: DynamicProcessorDispatcher.h:30