35 #ifndef GENAPI_NODECALLBACK_H 36 #define GENAPI_NODECALLBACK_H 93 template <
class Function>
100 m_pFunction( function )
118 const Function m_pFunction;
130 template <
class Function>
143 template<
class Function>
147 return pNode->RegisterCallback(pCallback);
159 template <
class Client,
class Member>
164 typedef void (Client::*PMEMBERFUNC)(
INode*);
170 m_pMemberFunc(member)
177 (m_Client.*m_pMemberFunc)(
m_pNode );
191 PMEMBERFUNC m_pMemberFunc;
203 template <
class Client,
class Member>
215 template<
class Client,
class Member>
219 return pNode->RegisterCallback(pCallback);
229 #endif // GENAPI_NODECALLBACK_H virtual void Destroy()
destroys the object
Definition: NodeCallback.h:181
virtual void Destroy()
destroys the object
Definition: NodeCallback.h:111
INode * GetNode()
returns the node the callback is registered to
Definition: NodeCallback.h:72
Function_NodeCallback(INode *pNode, const Function &function, ECallbackType CallbackType)
Constructor.
Definition: NodeCallback.h:98
Definition of interface INode and types NodeList_t and CallbackHandleType:
GENICAM_INTERFACE INode
Interface common to all nodes.
Definition: ICategory.h:49
virtual void operator()(ECallbackType CallbackType) const
execute operation: call the function
Definition: NodeCallback.h:104
callback is fired on leaving the tree inside the lock-guarded area
Definition: NodeCallback.h:46
callback body instance for INode pointers
Definition: NodeCallback.h:53
virtual void operator()(ECallbackType CallbackType) const =0
fires the callback if the type is right
Member_NodeCallback(INode *pNode, Client &client, Member member, ECallbackType CallbackType)
Constructor.
Definition: NodeCallback.h:167
CNodeCallback * make_NodeCallback(INode *pNode, Client &client, Member member, ECallbackType CallbackType)
make a new callback object for member functions
Definition: NodeCallback.h:204
enum GENAPI_NAMESPACE::_ECallbackType ECallbackType
the type of callback
virtual ~CNodeCallback()
virtual destructor
Definition: NodeCallback.h:62
virtual IBoolean & operator=(bool Value)
Set node value.
Definition: IBoolean.h:62
GENAPI_DECL void Deregister(GENAPI_NAMESPACE::CallbackHandleType pCallbackInfo)
Unregistering callback by handle.
Container for a member function pointer.
Definition: NodeCallback.h:160
intptr_t CallbackHandleType
the callback handle for nodes
Definition: INode.h:56
ECallbackType m_CallbackType
the type of the callback
Definition: NodeCallback.h:82
_ECallbackType
the type of callback
Definition: NodeCallback.h:43
virtual void Destroy()=0
destroys the object
INode * m_pNode
the node were the callback is installed
Definition: NodeCallback.h:79
intptr_t Register(INode *pNode, Client &c, Member m, ECallbackType CallbackType=cbPostInsideLock)
Register a C++-member function a callback.
Definition: NodeCallback.h:216
virtual void operator()(ECallbackType CallbackType) const
execute operation
Definition: NodeCallback.h:174
Container for a function pointer.
Definition: NodeCallback.h:94
Definition: ChunkAdapter.h:37