34 rangeChecking(kTTSym_none),
36 description(kTTSymEmpty),
45 readOnly(NO), rangeLowBound(0.0), rangeHighBound(1.0), rangeChecking(kTTSym_none), hidden(NO), description(kTTSymEmpty), mDefaultValue(0)
52 readOnly(NO), rangeLowBound(0.0), rangeHighBound(1.0), rangeChecking(kTTSym_none), hidden(NO), description(kTTSymEmpty), mDefaultValue(0)
58 :
TTObjectBase(
TTValue()), name(newName), type(newType), address(newAddress), getter(newGetter), setter(newSetter), getterObject(NULL), setterObject(NULL), getterFlags(
kTTAttrDefaultFlags), setterFlags(
kTTAttrDefaultFlags),
59 readOnly(NO), rangeLowBound(0.0), rangeHighBound(1.0), rangeChecking(kTTSym_none), hidden(NO), description(kTTSymEmpty), mDefaultValue(0)
66 readOnly(NO), rangeLowBound(0.0), rangeHighBound(1.0), rangeChecking(kTTSym_none), hidden(NO), description(kTTSymEmpty), mDefaultValue(0)
74 readOnly(extendedAttribute->readOnly), rangeLowBound(extendedAttribute->rangeLowBound), rangeHighBound(extendedAttribute->rangeHighBound), rangeChecking(extendedAttribute->rangeChecking), description(kTTSymEmpty), mDefaultValue(0)
109 switch(attribute.
type) {
163 case kNumTTDataTypes:
173 switch (attribute.
type) {
224 case kNumTTDataTypes:
235 return aGetter->
notify(value, value);
242 return aSetter->
notify(value, value);
274 if (newRange.
size() == 2) {
285 currentRange.
clear();
313 currentHiddenFlag =
hidden;
331 TTErr TTAttribute::setdefaultValue(
const TTValue& aDefaultValue)
337 TTErr TTAttribute::getdefaultValue(
TTValue& aReturnedDefaultValue)
const TTObjectBasePtr getterObject
TTObjectBasePtr to fetch the attribute value.
TTErr(TTObjectBase::* TTSetterMethod)(const TTAttribute &attribute, const TTValue &value)
A type that can be used to store a pointer to a message for an object.
bool TTBoolean
Boolean flag, same as Boolean on the Mac.
std::uint16_t TTUInt16
16 bit unsigned integer
TTErr setrangeChecking(const TTValue &newRangeCheckingMode)
Set the range boundary checking mode property for the attribute.
void getSetterFlags(TTAttributeFlags ¤tFlags)
Get the current setterFlag property of the attribute, describing the behavior of the attribute setter...
This class is used to be sensitive to any TTObject notifications and report them using a function wit...
Create Jamoma object instances.
TTErr getrange(TTValue ¤tRange)
Get the range of possible values for the attribute.
TTSymbol description
Property: description of this attribute.
TTErr getdescription(TTValue &returnedDescription)
Get the description property of the attribute, used for documentation purposes.
std::uint64_t TTUInt64
64 bit unsigned integer
TTDataType type
The data type of the attribute value.
void * address
Pointer to the memory holding the attribute value.
8-bit unsigned integer, range is 0 through 255.
TTErr setreadOnly(const TTValue &newReadOnlyValue)
Set the readOnly property of the attribute, controlling if the attribute value can be changed or not...
Create and use Jamoma object instances.
64-bit unsigned integer, range is 0 through 18,446,744,073,709,551,615.
TTAttribute(const TTSymbol newName, TTDataType newType, void *newAddress)
Object constructor.
size_type size() const noexcept
Return the number of elements.
TTErr extendedGetter(const TTAttribute &attribute, TTValue &value)
TODO: This needs to be documented.
TTDataType
TTBlue Data Types Enumeration of data types used through out TTBlue, including the TTValue class and ...
TTErr getreadOnly(TTValue ¤tReadOnlyValue)
Get the readOnly property of the attribute, controlling if the attribute value can be changed or not...
Bad DataType for the context.
The wrong number of values were passed to a method or attribute.
TTErr getAttributeValue(const TTSymbol name, TTValue &value)
Get an attribute value for an object.
This class represents a single attribute, as used by the TTObjectBase class.
TTValue mDefaultValue
Property: the default value for this attribute.
TTSetterMethod setter
Method to set the attribute value.
Base class for all first-class Jamoma objects.
TTErr gethidden(TTValue ¤tHiddenFlag)
Get the hidden flag for the attribute, indicating if this attribute is private/invisible to the outsi...
TTErr setAttributeValue(const TTSymbol name, TTValue &value)
Set an attribute value for an object.
double TTFloat64
64 bit floating point number
This is a special type used by TTAttribute to indicate that a value is a TTValue and is locally maint...
16-bit unsigned integer, range is 0 through 65,535.
void append(const T &anElementValueToAppend)
Insert a single TTElement at the end.
void * TTPtr
A generic pointer.
std::int64_t TTInt64
64 bit signed integer
std::int16_t TTInt16
16 bit signed integer
TTErr getrangeChecking(TTValue ¤tRangeCheckingMode)
Get the range boundary checking mode property for the attribute.
TTBoolean hidden
Property: this attribute is private/invisible to the outside world.
TTErr defaultGetter(const TTAttribute &attribute, TTValue &value)
The default method for getting the current attribute value.
This class is used to create a backward communication channel to notify a client that something chang...
16-bit signed integer, range is −32,768 through 32,767.
void setGetterFlags(TTAttributeFlags newFlags)
Set the getterFlag property of the attribute, defining the behavior of the attribute getter method...
Attribute accessors will first be passed a reference to the TTAttribute object, then it will be passe...
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
TTErr defaultSetter(const TTAttribute &attribute, const TTValue &value)
The default method for setting the attribute value.
const TTObjectBasePtr setterObject
TTObjectBasePtr to set the attribute value.
TTErr setrange(const TTValue &newRange)
Set the range of possible values for the attribute.
float TTFloat32
32 bit floating point number
The default set of flags will be used if this is specified. At this time the default is kTTAttrPassVa...
TTAttributeFlags setterFlags
Define the behavior of the attribute setter method.
Boolean (1/0) or (true/false) flag.
TTErr extendedSetter(const TTAttribute &attribute, TTValue &value)
TODO: This needs to be documented.
std::int32_t TTInt32
32 bit signed integer
TTErr callbackSetter(const TTAttribute &attribute, TTValue &value)
TODO: This needs to be documented.
64-bit signed integer, ragne is −9,223,372,036,854,775,808 through 9,223,372,036,854,775,807
virtual ~TTAttribute()
Object destructor.
void clear()
Clear all values from the vector, leaving with size of 0.
TTFloat64 rangeLowBound
If the range property is defined, this is the bottom of a value's range.
TTMatrix wraps a TTMatrixBase for use.
TTEnvironment is a global object providing information on the environemt.
TTCallback * TTCallbackPtr
Pointer to a TTCallback object.
const TTSymbol name
The name of the attribute.
TTErr setdescription(const TTValue &newDescription)
Set the description property of the attribute, used for documentation purposes.
32-bit signed integer, range is -2,147,483,648 through 2,147,483,647.
void getGetterFlags(TTAttributeFlags ¤tFlags)
Get the current getterFlag property of the attribute, describing the behavior of the attribute getter...
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
signed char TTInt8
8 bit signed integer (char)
void setSetterFlags(TTAttributeFlags newFlags)
Set the setterFlag property of the attribute, defining the behavior of the attribute setter method...
std::uint32_t TTUInt32
32 bit unsigned integer
TTErr sethidden(const TTValue &newHiddenFlag)
Set the hidden flag for the attribute, determining if this attribute is private/invisible to the outs...
TTFloat64 rangeHighBound
If the range property is defined, this is the top of a value's range.
TTAttributeFlags getterFlags
Define the behavior of the attribute getter method.
TTErr callbackGetter(const TTAttribute &attribute, TTValue &value)
TODO: This needs to be documented.
TTAttributeFlags
Flags that determine the behavior of messages.
32-bit unsigned integer, range is 0 through 4,294,967,295.
8-bit signed integer, range is -128 through 127.
TTErr notify(const TTValue &anInputValue, TTValue &anUnusedOutputValue)
Message called because we are registered as an observer to some other object, and then calls our exte...
TTGetterMethod getter
Method to fetch the attribute value.
TTSymbol rangeChecking
If the rangeChecking property is defined, the value should be checked for range and modified accordin...
TTErr(TTObjectBase::* TTGetterMethod)(const TTAttribute &attribute, TTValue &value)
A type that can be used to store a pointer to a message for an object.
[doxygenAppendixC_copyExample]
TTBoolean readOnly
The readonly property, if defined, means an attribute cannot be set.
unsigned char TTUInt8
8 bit unsigned integer (char)