Template Class SickCallbackHandler
Defined in File sick_generic_callback.h
Class Documentation
-
template<typename HandleType, class MsgType>
class SickCallbackHandler Public Types
-
typedef void (*callbackFunctionPtr)(HandleType handle, const MsgType *msg)
Public Functions
-
inline void addListener(HandleType handle, callbackFunctionPtr listener)
-
inline void notifyListener(HandleType handle, const MsgType *msg)
-
inline void removeListener(HandleType handle, callbackFunctionPtr listener)
-
inline bool isListenerRegistered(HandleType handle, callbackFunctionPtr listener)
-
inline void clear()
Protected Functions
-
inline std::list<callbackFunctionPtr> getListener(HandleType handle)
Protected Attributes
-
std::map<HandleType, std::list<callbackFunctionPtr>> m_listeners
-
std::mutex m_listeners_mutex
-
typedef void (*callbackFunctionPtr)(HandleType handle, const MsgType *msg)