TQ3AttributeCopyInheritMethod
You can define an attribute inheritance method to copy attributes during inheritance.
typedef TQ3Status (*TQ3AttributeCopyInheritMethod) ( const void *fromInternalAttribute, void *toInternalAttribute);
fromInternalAttribute- A pointer to the attribute data associated with an attribute having your custom attribute type.
toInternalAttribute- On entry, a pointer to an uninitialized block of memory large enough to contain the attribute data associated with an attribute having your custom attribute type.
DESCRIPTION
YourTQ3AttributeCopyInheritMethodfunction should copy the attribute data pointed to by thefromInternalAttributeparameter into the location pointed to by thetoInternalAttributeparameter. This method is called whenever theQ3AttributeSet_Inheritfunction is used to copy an attribute of your custom type from one set to another set.You should strive to make your
TQ3AttributeCopyInheritMethodmethod as fast as possible. For example, if your custom element contains objects, you should call theQ3Shared_GetReferencefunction instead of theQ3Object_Duplicatefunction.RESULT CODES
YourTQ3AttributeCopyInheritMethodfunction should returnkQ3Successif it is successful andkQ3Failureotherwise.