OSCAssociativeNamespace Class Reference

A simple implementation of an OSC namespace. More...

#include <OSCAssociativeNamespace.h>

Inheritance diagram for OSCAssociativeNamespace:

[legend]
Collaboration diagram for OSCAssociativeNamespace:
[legend]
List of all members.

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

Detailed Description

A simple implementation of an OSC namespace.

This implementation of the OSCNamespace uses a flat mapping between complete addresses and OSCCallables (callbacks).

Author:
Daniel Holth

Clinton McChesney

Martin Rumori


Member Function Documentation

std::vector< std::string > OSCAssociativeNamespace::list const std::string &  basename  )  [virtual]
 

Bug: doesn't check for basename, just returns it all.

Bug:
basename is ignored - it returns all addresses, not just the ones that start with basename.

Implements OSCNamespace.


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