OSCHierarchicalNamespace Class Reference

Namespace supporting pattern matching and a true address tree. More...

#include <OSCHierarchicalNamespace.h>

Inheritance diagram for OSCHierarchicalNamespace:

[legend]
Collaboration diagram for OSCHierarchicalNamespace:
[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)
virtual bool dispatch (const std::string &address, const std::string &data, Transmit *const reply)
 Invoke callback for all addresses matching std::string &address.
virtual std::vector< std::string > list (const std::string &basename)
 This will be implemented outside the Namespace object when we obsolete the /list method in favor of appended-/ list requests.

Protected Types

typedef std::map< std::string,
OSCCallable *, std::less<
std::string > > 
CallableMap

Protected Member Functions

void setRoot (OSCNamespaceItem *root)
OSCNamespaceItemgetRoot ()

Detailed Description

Namespace supporting pattern matching and a true address tree.

Namespace that's hard to spell, having a true tree of items, supporting pattern matching and multiple dispatch.

Author:
Daniel Holth


Member Function Documentation

OSCCallable * OSCHierarchicalNamespace::find const std::string &  address  )  [virtual]
 

Bug:
only finds one, even though we can have wildcards in address. try dispatch()

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