OSCNamespace Class Reference

Associate OSC addresses with OSC callbacks. More...

#include <OSCNamespace.h>

Inheritance diagram for OSCNamespace:

[legend]
List of all members.

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 OSCCallablefind (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.

Detailed Description

Associate OSC addresses with OSC callbacks.

Typical usage:

 void process(OSCNamespace *namespace, string address, Transmit *reply)
 {
     namespace->dispatch(address, reply);
 }

Author:
Daniel Holth

Clinton McChesney


The documentation for this class was generated from the following files:
Generated on Thu Mar 2 23:51:36 2006 for libOSC++ by  doxygen 1.4.6