#include <WOscReceiverMethod.h>
Inherits WOscMethod.
Inherited by WOscTcpHandlerMethod.
Public Member Functions | |
WOscReceiverMethod (WOscContainer *parent, WOscReceiver *context, const char *methodName, const char *methodDescription) | |
WOscReceiverMethod (WOscContainer *parent, WOscReceiver *context, const char *methodName, WOscMethodInfo *info) | |
Protected Member Functions | |
virtual | ~WOscReceiverMethod () |
WOscReceiver * | GetContext () |
Adds functionality to WOscMethod necessary for use in WOscReceiver. This happens by handling the internal context pointer in a type-save way by providing constructors and functions.
WOscClient.cpp, and WOscServer.cpp.
Definition at line 53 of file WOscReceiverMethod.h.
WOscReceiverMethod::WOscReceiverMethod | ( | WOscContainer * | parent, | |
WOscReceiver * | context, | |||
const char * | methodName, | |||
const char * | methodDescription | |||
) | [inline] |
Constructor of an OSC receiver method.
parent | Pointer to parent container. | |
context | Pointer to the receiver owning this method. The context can be used later in receiver methods (i.e. for accessing OSC receiver functionality inside OSC methods). | |
methodName | Address pattern (e.g. "echo"). | |
methodDescription | Description of this method. |
Definition at line 68 of file WOscReceiverMethod.h.
00070 : 00071 WOscMethod(parent, methodName, new WOscMethodInfo(methodDescription)), 00072 m_context(context) { }
WOscReceiverMethod::WOscReceiverMethod | ( | WOscContainer * | parent, | |
WOscReceiver * | context, | |||
const char * | methodName, | |||
WOscMethodInfo * | info | |||
) | [inline] |
As the other constructor but the user can set a proprietary method info.
info | Proprietary info. Note that this object will be deallocated by the method itself. |
Definition at line 79 of file WOscReceiverMethod.h.
00081 : 00082 WOscMethod(parent, methodName, info), m_context(context) { }
virtual WOscReceiverMethod::~WOscReceiverMethod | ( | ) | [inline, protected, virtual] |
WOscReceiver* WOscReceiverMethod::GetContext | ( | ) | [inline, protected] |
Returns a pointer to the OSC receiver owning this method. Casts the internal context-pointer to OSC receiver.
Reimplemented in WOscTcpHandlerMethod.
Definition at line 92 of file WOscReceiverMethod.h.