Real Time Open Sound Control librtosc
|
#include <ports.h>
Public Member Functions | |
auto | begin () const -> decltype(ports.begin()) |
auto | end () const -> decltype(ports.end()) |
const Port & | operator[] (unsigned i) const |
Ports (std::initializer_list< Port > l) | |
Ports (const Ports &)=delete | |
void | dispatch (char *loc, size_t loc_size, msg_t m, void *v) |
const Port * | operator[] (const char *name) const |
msg_t | snip (msg_t m) const |
const Port * | apropos (const char *path) const |
Public Attributes | |
std::vector< Port > | ports |
Ports - a dispatchable collection of Port entries
This structure makes it somewhat easier to perform actions on collections of port entries and it is responsible for the dispatching of OSC messages to their respective ports. That said, it is a very simple structure, which uses a stl container to store all data in a simple dispatch table. All methods post-initialization are RT safe (assuming callbacks are RT safe)
|
inline |
|
delete |
|
inline |
Find the best match for a given path or NULL
|
inline |
Forwards to builtin container
|
inline |
Dispatches message to all matching ports. This uses simple pattern matching available in rtosc::match.
loc | A buffer for storing path information or NULL |
loc_size | The length of the provided buffer |
m | a valid OSC message |
v | a pointer to data or NULL |
|
inline |
Forwards to builtin container
|
inline |
Forwards to builtin container
|
inline |
Retrieve local port by name TODO implement full matching
std::vector<Port> rtosc::Ports::ports |