#include <OSCNamespace.h>
Inheritance diagram for OSCNamespace:
Public Member Functions | |
virtual bool | add (const std::string &address, OSCCallable *thingamabob)=0 |
Add OSCCallable thingamabob to the namespace with address address. | |
virtual bool | remove (const std::string &address)=0 |
Remove the callable at address address. | |
virtual OSCCallable * | find (const std::string &address)=0 |
Get a pointer to the first OSCCallable matching the given address, or NULL if not found. | |
virtual bool | dispatch (const std::string &address, const std::string &data, Transmit *const reply)=0 |
Since one address can match multiple callbacks, use this. | |
virtual std::vector< std::string > | list (const std::string &base)=0 |
Return a list of all addresses in the namespace beginning with the string base. |
Typical usage:
void process(OSCNamespace *namespace, string address, Transmit *reply) { namespace->dispatch(address, reply); }
Clinton McChesney