#include <OSCAssociativeNamespace.h>
Inheritance diagram for OSCAssociativeNamespace:
Public Member Functions | |
virtual bool | add (const std::string &address, OSCCallable *thingamabob) |
Add OSCCallable thingamabob to the namespace with address address. | |
virtual bool | remove (const std::string &address) |
Remove the callable at address address. | |
virtual OSCCallable * | find (const std::string &address) |
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) |
Since one address can match multiple callbacks, use this. | |
virtual std::vector< std::string > | list (const std::string &basename) |
Bug: doesn't check for basename, just returns it all. | |
Protected Types | |
typedef std::map< std::string, OSCCallable *, std::less< std::string > > | CallableMap |
Protected Member Functions | |
CallableMap * | getCallables () |
void | setCallables (CallableMap *cm) |
This implementation of the OSCNamespace uses a flat mapping between complete addresses and OSCCallables (callbacks).
Clinton McChesney
Martin Rumori
|
Bug: doesn't check for basename, just returns it all.
Implements OSCNamespace. |