18 #define thisTTClass TTModelInfo
19 #define thisTTClassName "ModelInfo"
20 #define thisTTClassTags "model info"
22 TT_MODULAR_CONSTRUCTOR,
26 if (arguments.size() == 1)
28 mObject = (t_object*)(
TTPtr(arguments[0]));
40 this->findAttribute(kTTSym_address, &addressAttribute);
44 TTModelInfo::~TTModelInfo()
51 mAddress = newValue[0];
59 void TTModelInfo::setAddressReadOnly(
TTBoolean readOnly)
75 if (!err && service == kTTSym_model) {
100 if (mClass != kTTSymEmpty) {
102 t_symbol *helpfileName;
116 if (mClass != kTTSymEmpty) {
118 t_symbol *refpagefileName;
131 object_method(mObject, gensym(
"reference_write"));
bool TTBoolean
Boolean flag, same as Boolean on the Mac.
TTErr send(const TTSymbol aName)
Send a message to this object with no arguments.
#define addAttribute(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom getter...
TTErr InternalOpen()
Open the internal patcher.
TTErr setreadOnly(const TTValue &newReadOnlyValue)
Set the readOnly property of the attribute, controlling if the attribute value can be changed or not...
TTErr ReferenceOpen()
Open the reference file.
TTErr sendNotification(const TTSymbol name, const TTValue &arguments)
Send a notification.
TTErr HelpOpen()
Open the help page.
A base class for Jamoma models.
void * TTPtr
A generic pointer.
TTErr get(const TTSymbol aName, T &aReturnedValue) const
Get an attribute value for an object.
TTErr ReferenceWrite()
Write the reference file.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
TTErr Rename(const TTValue &inputValue, TTValue &outputValue)
Rename the model.
TTObject wrappedObject
The instance of the Jamoma object we are wrapping.
#define addMessageWithArguments(name)
A convenience macro to be used by subclasses for registering messages.
TTErr Mute()
Mute the patcher.
Data Structure for this object.
Something went wrong, but what exactly is not known. Typically used for context-specific problems...
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
TTErr setAddress(const TTValue &newValue)
Atribute accessor.
#define addAttributeWithSetter(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom setter...
#define addMessage(name)
A convenience macro to be used by subclasses for registering messages.
WrappedModularInstance * WrappedModularInstancePtr
Pointer to a wrapped instance of our object.
[doxygenAppendixC_copyExample]