#include <OSCNamespaceItem.h>
Collaboration diagram for OSCNamespaceItem:
Public Types | |
typedef std::map< std::string, OSCNamespaceItem *, std::less< std::string > > | ItemMap |
typedef void(* | TraverseFunction )(void *cookie, std::vector< std::string > &address, OSCNamespaceItem *item) |
Public Member Functions | |
void | setCallable (OSCCallable *callback) |
OSCCallable * | getCallable () |
bool | traverse (const std::string &pattern, TraverseFunction tf, void *cookie=NULL) |
Call function tf for each address matching const std::string &pattern. | |
bool | add (std::string name, OSCCallable *callback=NULL) |
Add address and optional callback to the namespace. | |
bool | list (int level) |
print namespace recursive function for debugging | |
Public Attributes | |
ItemMap * | mySubItems |
OSCCallable * | myCallable |
Protected Member Functions | |
bool | search_internal (void *cookie, TraverseFunction tf, std::vector< std::string > &address, const std::string &name, size_t offset) |
/ foo / bar / baz
(the delimiters are only stored implicitly)
|
Call function tf for each address matching const std::string &pattern.
|