Jamoma API  0.6.0.a19
JamomaForPd.h File Reference

Various utilities for interfacing with Pd that are not specific to JamomaModular as such. More...

#include "TTFoundationAPI.h"
#include "TTModular.h"
#include "cicm_wrapper.h"
#include "commonsyms.h"
#include <math.h>
#include <stdlib.h>
#include "JamomaPdVersion.h"
#include "JamomaObject.h"
#include "JamomaPdObjectTypes.h"
#include "JamomaSymbols.h"
#include "JamomaModularForPd.h"
+ Include dependency graph for JamomaForPd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void JAMOMA_EXPORT jamoma_atom_copy (t_atom *dst, t_atom *src)
 Utility function to perform an atom copy. More...
 
bool JAMOMA_EXPORT jamoma_atom_compare (t_symbol *type, t_atom *a1, t_atom *a2)
 Utility function to compare two t_atoms. More...
 
bool JAMOMA_EXPORT jamoma_string_compare (char *s1, char *s2)
 Compare two strings. More...
 
bool JAMOMA_EXPORT jamoma_loadextern (t_symbol *objectname, long argc, t_atom *argv, t_object **object)
 Load obex externals for use within other externals. More...
 

Detailed Description

Various utilities for interfacing with Pd that are not specific to JamomaModular as such.

Functions and resources used by Pd objects.

Authors
Tim Place, Théo de la Hogue, Trond Lossius, Antoine Villeret

Definition in file JamomaForPd.h.

Function Documentation

bool JAMOMA_EXPORT jamoma_atom_compare ( t_symbol *  type,
t_atom *  a1,
t_atom *  a2 
)

Utility function to compare two t_atoms.

Parameters
typeThe atom type of a1.
a1A t_atom.
a2The t_atom to compare against.
Returns
true if the t_atom's are the same.

Definition at line 186 of file JamomaForMax.cpp.

References jps_array, jps_boolean, jps_decimal, jps_decimalArray, jps_generic, jps_integer, jps_integerArray, and jps_string.

void JAMOMA_EXPORT jamoma_atom_copy ( t_atom *  dst,
t_atom *  src 
)

Utility function to perform an atom copy.

Parameters
dstThe destination t_atom.
srcThe t_atom to be copied.

Definition at line 180 of file JamomaForMax.cpp.

bool JAMOMA_EXPORT jamoma_loadextern ( t_symbol *  objectname,
long  argc,
t_atom *  argv,
t_object **  object 
)

Load obex externals for use within other externals.

Parameters
objectnameThe object name (i.e. SymbolGen("j.send")).
argcNumber of arguments to the external to be loaded.
argvPointer to the first of an array of atom arguments to the external that is to be loaded.
objectIf the object is loaded successfully, this will be a pointer to the object pointer.
Returns
true if successfully loaded, otherwise false.

Definition at line 258 of file JamomaForMax.cpp.

bool JAMOMA_EXPORT jamoma_string_compare ( char *  s1,
char *  s2 
)

Compare two strings.

Parameters
s1Pointer to the first of the two strings to compare-
s2Pointer to the second of the two strings to compare.
Returns
true if the strings are the same.

Definition at line 234 of file JamomaForMax.cpp.