10 #ifndef __TT_CLASS_WRAPPER_MAX_H__
11 #define __TT_CLASS_WRAPPER_MAX_H__
15 #include "ext_strings.h"
16 #include "commonsyms.h"
18 #include "TTFoundationAPI.h"
27 #define SELF ((t_object*)self)
31 class WrappedClassOptions;
33 typedef struct _wrappedClass {
35 t_symbol* maxClassName;
38 TTPtr validityCheckArgument;
39 WrappedClassOptions* options;
40 t_hashtab* maxNamesToTTNames;
47 class WrappedClassOptions {
57 virtual ~WrappedClassOptions()
64 return options->
append(optionName, optionValue);
70 return options->
lookup(optionName, optionValue);
76 typedef WrappedClass* WrappedClassPtr;
77 typedef WrappedClassOptions* WrappedClassOptionsPtr;
83 typedef struct _wrappedInstance {
85 WrappedClassPtr wrappedClassDefinition;
100 t_bool signals_connected[256];
114 t_max_err wrappedClass_attrGet(
TTPtr self, t_object* attr,
long* argc, t_atom** argv);
115 t_max_err wrappedClass_attrSet(
TTPtr self, t_object* attr,
long argc, t_atom* argv);
116 void wrappedClass_anything(
TTPtr self, t_symbol* s,
long argc, t_atom* argv);
117 void wrappedClass_assist(WrappedInstancePtr
self,
void *b,
long msg,
long arg,
char *dst);
125 TTErr wrapTTClassAsMaxClass(
TTSymbol ttblueClassName,
const char* maxClassName, WrappedClassPtr* c);
135 TTErr wrapTTClassAsMaxClass(
TTSymbol ttblueClassName,
const char* maxClassName, WrappedClassPtr* c, WrappedClassOptionsPtr options);
139 TTErr TTValueFromAtoms(
TTValue& v,
long ac, t_atom* av);
140 TTErr TTAtomsFromValue(
const TTValue& v,
long* ac, t_atom** av);
146 #endif // __TT_CLASS_WRAPPER_MAX_H__
bool TTBoolean
Boolean flag, same as Boolean on the Mac.
std::uint16_t TTUInt16
16 bit unsigned integer
TTErr lookup(const TTSymbol key, TTValue &value)
Find the value for the given key.
Create and use Jamoma object instances.
Wrap audio objects for convenience.
Maintain a collection of TTValue objects indexed by TTSymbol pointers.
WrappedInstance * WrappedInstancePtr
Pointer to a wrapped instance of our object.
void * TTPtr
A generic pointer.
TTErr(* TTValidityCheckFunction)(const TTPtr data)
A type that can be used to store a pointer to a validity checking function.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
TTErr append(const TTSymbol key, const TTValue &value)
Insert an item into the hash table.
Wrap TTMatrixBase instances.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
[doxygenAppendixC_copyExample]
Wrap TTAudioSignal instances for convenience.