Jamoma API  0.6.0.a19
TTModularClassWrapperMax.h File Reference

Wraps Jamoma Core classes as objects for Max/MSP. More...

#include "ext.h"
#include "ext_obex.h"
#include "ext_user.h"
#include "ext_common.h"
#include "ext_hashtab.h"
#include "TTClassWrapperMax.h"
#include "TTModular.h"
#include "JamomaForMax.h"
#include "TTInputAudio.h"
#include "TTOutputAudio.h"
+ Include dependency graph for TTModularClassWrapperMax.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WrappedModularInstance
 Data Structure for this object. More...
 

Typedefs

typedef void(* Spec_WrapTTModularClass) (WrappedClassPtr c)
 Definition for specific TT class things. More...
 
typedef void(* Spec_WrappedClass_new) (TTPtr self, long argc, t_atom *argv)
 Wrapper for the new method, called when a new obejct is being instantiated. More...
 
typedef void(* Spec_WrappedClass_free) (TTPtr self)
 Wrapper for the 'free' method, called when an object is being freed. More...
 
typedef void(* Spec_WrappedClass_anything) (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Wrapper for the method called in response to 'anything' messages. More...
 
typedef t_max_err(* Spec_WrappedClass_notify) (TTPtr self, t_symbol *s, t_symbol *msg, void *sender, void *data)
 Wrapper for a method called when the object receives notifications. More...
 
typedef WrappedModularInstanceWrappedModularInstancePtr
 Pointer to a wrapped instance of our object.
 

Functions

void copy_msg_argc_argv (TTPtr self, t_symbol *msg, long argc, const t_atom *argv)
 tools to copy msg, argc and argv into the member msg, argc and argv of the WrappedModularInstance
 
TTObjectBasePtr getSelectedObject (WrappedModularInstancePtr x)
 In case internals table is used as an array of wrappedObject here is a method usefull to get the selected object in both case (use wrappedObject or use internals)
 
TTErr wrapTTModularClassAsMaxClass (TTSymbol &ttblueClassName, const char *maxClassName, WrappedClassPtr *c, ModularSpec *specificities)
 Wrap a Jamoma class as a Max class.
 
t_object * wrappedModularClass_new (t_symbol *name, long argc, t_atom *argv)
 Wrapped methods ('self' has to be TTPtr because different wrappers (such as the ui wrapper) have different implementations) More...
 
t_max_err wrappedModularClass_attrGet (TTPtr self, t_object *attr, long *argc, t_atom **argv)
 
t_max_err wrappedModularClass_attrSet (TTPtr self, t_object *attr, long argc, const t_atom *argv)
 
void wrappedModularClass_anything (TTPtr self, t_symbol *s, long argc, t_atom *argv)
 This method handles "anything" messages to the Max object that wraps the #TTModularClass. More...
 
TTErr wrappedModularClass_sendMessage (TTPtr self, t_symbol *s, long argc, const t_atom *argv)
 
TTErr wrappedModularClass_setAttribute (TTPtr self, t_symbol *s, long argc, const t_atom *argv)
 

Detailed Description

Wraps Jamoma Core classes as objects for Max/MSP.

Authors
Timothy Place, Theo de la Hogue, Trond Lossius

Definition in file TTModularClassWrapperMax.h.

Typedef Documentation

typedef void(* Spec_WrappedClass_anything) (TTPtr self, t_symbol *msg, long argc, t_atom *argv)

Wrapper for the method called in response to 'anything' messages.

This wrapped method catches all messages to the object that have not been declared on and associated with their own specific methods.

Parameters
selfThis object
msgMessage passed to this object
argct_atomarray count (length) for the array of arguments
argvPointer to the atom array of arguments

Definition at line 80 of file TTModularClassWrapperMax.h.

typedef t_max_err(* Spec_WrappedClass_notify) (TTPtr self, t_symbol *s, t_symbol *msg, void *sender, void *data)

Wrapper for a method called when the object receives notifications.

Examples of notifications are messages sent to the node, or notifications about changes to the patcher context, e.g., that the containing patch is being deleted.

Parameters
selfThis object
sTODO: What is this?
msgThe notification message
senderPointer to the notifier
dataAdditional data provided as arguments to the notification

Definition at line 91 of file TTModularClassWrapperMax.h.

Function Documentation

void wrappedModularClass_anything ( TTPtr  self,
t_symbol *  s,
long  argc,
t_atom *  argv 
)

This method handles "anything" messages to the Max object that wraps the #TTModularClass.

Parameters
selfThis object
sMessage passed to this object
argcNumber of arguments for the message.
argvThe arguments of the message as a pointer to an atom array

Definition at line 371 of file TTModularClassWrapperMax.cpp.

Referenced by wrapTTModularClassAsMaxClass(), and wrapTTModularClassAsPdClass().

t_max_err wrappedModularClass_attrGet ( TTPtr  self,
t_object *  attr,
long *  argc,
t_atom **  argv 
)
Parameters
selfThis object
sMessage passed to this object
argct_atomarray count (length)
argvPointer to the atom array

Definition at line 272 of file TTModularClassWrapperMax.cpp.

Referenced by wrapTTModularClassAsMaxClass(), and wrapTTModularClassAsPdClass().

t_max_err wrappedModularClass_attrSet ( TTPtr  self,
t_object *  attr,
long  argc,
const t_atom *  argv 
)
Parameters
selfThis object
sMessage passed to this object
argct_atomarray count (length)
argvPointer to the atom array

Definition at line 296 of file TTModularClassWrapperMax.cpp.

Referenced by wrappedModularClass_attrSet(), wrapTTModularClassAsMaxClass(), and wrapTTModularClassAsPdClass().

t_object* wrappedModularClass_new ( t_symbol *  name,
long  argc,
t_atom *  argv 
)

Wrapped methods ('self' has to be TTPtr because different wrappers (such as the ui wrapper) have different implementations)

Parameters
nameMessage passed to this object
argct_atomarray count (length)
argvPointer to the atom array

Definition at line 18 of file TTModularClassWrapperMax.cpp.

Referenced by wrapTTModularClassAsMaxClass(), and wrapTTModularClassAsPdClass().

TTErr wrappedModularClass_sendMessage ( TTPtr  self,
t_symbol *  s,
long  argc,
const t_atom *  argv 
)
Parameters
selfThis object
sMessage passed to this object
argct_atomarray count (length)
argvPointer to the atom array

Definition at line 441 of file TTModularClassWrapperMax.cpp.

Referenced by wrappedModularClass_anything().

TTErr wrappedModularClass_setAttribute ( TTPtr  self,
t_symbol *  s,
long  argc,
const t_atom *  argv 
)
Parameters
selfThis object
sMessage passed to this object
argct_atomarray count (length)
argvPointer to the atom array

Definition at line 481 of file TTModularClassWrapperMax.cpp.

Referenced by wrappedModularClass_anything().