Jamoma API  0.6.0.a19
JamomaForPd.cpp File Reference

Jamoma For Max Shared Library. More...

#include "JamomaForPd.h"
#include <dlfcn.h>
#include <map>
+ Include dependency graph for JamomaForPd.cpp:

Go to the source code of this file.

Functions

void jamoma_atom_copy (t_atom *dst, t_atom *src)
 Utility function to perform an atom copy. More...
 
bool jamoma_atom_compare (t_symbol *type, t_atom *a1, t_atom *a2)
 Utility function to compare two t_atoms. More...
 
bool jamoma_string_compare (char *s1, char *s2)
 Compare two strings. More...
 

Variables

TTRegex * ttRegexForJmod = NULL
 A global regex to parse jmod. (usefull to detect a 0.5 module)
 
TTRegex * ttRegexForJcom = NULL
 A global regex to parse j.
 
TTRegex * ttRegexForModel = NULL
 A global regex to parse .model.
 
TTRegex * ttRegexForModule = NULL
 A global regex to parse .module.
 
TTRegex * ttRegexForView = NULL
 A global regex to parse .view.
 
TTRegex * ttRegexForPdpat = NULL
 A global regex to parse .maxpat.
 
TTRegex * ttRegexForPdhelp = NULL
 A global regex to parse .maxhelp.
 
TTRegex * ttRegexForBracket = NULL
 A global regex to parse [ and ].
 

Detailed Description

Jamoma For Max Shared Library.

Functions and resources used by Max objects.

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

Definition in file JamomaForPd.cpp.

Function Documentation

bool 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 184 of file JamomaForPd.cpp.

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

void 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 178 of file JamomaForPd.cpp.

bool 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 235 of file JamomaForPd.cpp.