21 #ifndef GENERICSERVERTHREADLISTENER_H_INCLUDED
22 #define GENERICSERVERTHREADLISTENER_H_INCLUDED
26 namespace lowrappers {
40 typedef int (T::*
fpType)(
const char *path,
const char *types,
41 lo_arg **argv,
int argc, lo_message msg);
45 object_(object), fp_(fp)
51 virtual int callback(
const char *path,
const char *types,
52 lo_arg **argv,
int argc, lo_message msg)
54 return (object_.*fp_)(path, types, argv, argc, msg);
94 const char *types,lo_arg **argv,
int argc, lo_message msg))
101 #endif // GENERICSERVERTHREADLISTENER_H_INCLUDED
ServerThread::Listener * ListenerMaker(T &object, int(T::*fp)(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg))
A function that conveniently wraps up a GenericServerThreadListener.
Definition: GenericServerThreadListener.h:93
virtual ~GenericServerThreadListener()
Destructor.
Definition: GenericServerThreadListener.h:49
A generic functor class for the ServerThread::Listener interface.
Definition: GenericServerThreadListener.h:34
int(T::* fpType)(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg)
The type of function pointer that can be passed to the constructor.
Definition: GenericServerThreadListener.h:40
GenericServerThreadListener(T &object, fpType fp)
Constructor.
Definition: GenericServerThreadListener.h:44
A listener interface for listeners to be called by the ServerThread when incoming OSC messages are re...
Definition: ServerThread.h:64
virtual int callback(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg)
The callback method that will be called from the ServerThread.
Definition: GenericServerThreadListener.h:51