Jamoma API  0.6.0.a19
j.oscroute.cpp File Reference

j.oscroute - parse and pass OSC messages More...

#include "j.oscroute.h"
+ Include dependency graph for j.oscroute.cpp:

Go to the source code of this file.

Functions

int JAMOMA_EXPORT_MAXOBJ main (void)
 Set up this class as a Max external the first time an object of this kind is instantiated. More...
 
void * oscroute_new (t_symbol *s, long argc, t_atom *argv)
 Object instance constructor. More...
 
void oscroute_free (t_oscroute *x)
 Object instance destructor, ensures that all memory assigned is properly freed. More...
 
void oscroute_assist (t_oscroute *x, void *b, long msg, long arg, char *dst)
 Provide assistance on input and output while patching. More...
 
void oscroute_bang (t_oscroute *x)
 Method called when a "bang" is passed to the object. More...
 
void oscroute_int (t_oscroute *x, long n)
 Method called when an "int" is passed to the object. More...
 
void oscroute_float (t_oscroute *x, double f)
 Method called when a "float" is passed to the object. More...
 
void oscroute_list (t_oscroute *x, t_symbol *msg, long argc, t_atom *argv)
 Method called when a list is passed to the object. More...
 
void oscroute_symbol (t_oscroute *x, t_symbol *msg, long argc, t_atom *argv)
 Method called when a symbol is passed to the object. More...
 

Detailed Description

j.oscroute - parse and pass OSC messages

Authors
Tim Place, Trond Lossius

Definition in file j.oscroute.cpp.

Function Documentation

int JAMOMA_EXPORT_MAXOBJ main ( void  )

Set up this class as a Max external the first time an object of this kind is instantiated.

Returns
Error message if the object fails to load.

Set up this class as a Max external the first time an object of this kind is instantiated.

Definition at line 22 of file j.oscroute.cpp.

References oscroute_assist(), oscroute_bang(), oscroute_class, oscroute_float(), oscroute_free(), oscroute_int(), oscroute_list(), oscroute_new(), and oscroute_symbol().

+ Here is the call graph for this function:

void oscroute_assist ( t_oscroute *  x,
void *  b,
long  msg,
long  arg,
char *  dst 
)

Provide assistance on input and output while patching.

Parameters
xThe object instance.
b
msgDetermines if assistance is requested for an input or output.
argDetermines what input/output assistance is requested for.
dstDestination address that assistance string is copied to.

Definition at line 124 of file j.oscroute.cpp.

Referenced by main().

void oscroute_bang ( t_oscroute *  x)

Method called when a "bang" is passed to the object.

The bang is passed straight on to the rightmost (overflow) outlet.

Parameters
xThe object instance.

Definition at line 138 of file j.oscroute.cpp.

Referenced by main().

void oscroute_float ( t_oscroute *  x,
double  f 
)

Method called when a "float" is passed to the object.

Floats are passed straight to the rightmost (overflow) outlet.

Parameters
xThe object instance.
fThe float value passed to the object instance.

Definition at line 150 of file j.oscroute.cpp.

Referenced by main().

void oscroute_free ( t_oscroute *  x)

Object instance destructor, ensures that all memory assigned is properly freed.

Parameters
xPointer to the object instance to free.

Definition at line 109 of file j.oscroute.cpp.

Referenced by main().

void oscroute_int ( t_oscroute *  x,
long  n 
)

Method called when an "int" is passed to the object.

Integer values are passed straight to the rightmost (overflow) outlet.

Parameters
xThe object instance.
nThe integer value passed to the object instance.

Definition at line 144 of file j.oscroute.cpp.

Referenced by main().

void oscroute_list ( t_oscroute *  x,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)

Method called when a list is passed to the object.

Lists are passed straight to the rightmost (overflow) outlet.

Parameters
xThe object instance.
msgThe message passed to the object, usually "list".
argcThe number of arguments.
argvThe arguments of the list as a pointer to an array.

Definition at line 156 of file j.oscroute.cpp.

Referenced by main().

void* oscroute_new ( t_symbol *  s,
long  argc,
t_atom *  argv 
)

Object instance constructor.

Parameters
sSymbol passed as an argument to the new object instance.
argcThe number of arguments passed to the new object instance.
argvThe arguments passed to the object instance as a pointer to an array.

Definition at line 52 of file j.oscroute.cpp.

References oscroute_class.

Referenced by main().

void oscroute_symbol ( t_oscroute *  x,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)

Method called when a symbol is passed to the object.

The symbol is compared to the various symbols that the object instance is looking for. If there's a match, the message is stripped of the matched part of the message, and passed to the appropriate outlet. If not the messae is passed on to the rightmost (overflow) outlet.

Parameters
xThe object instance.
msgThe message passed to the object.
argcThe number of arguments.
argvThe arguments of the list as a pointer to an array.

Definition at line 194 of file j.oscroute.cpp.

Referenced by main().