Attribute group classes

Attribute groups are collections of attributes. They operate on the attributes they manage using set semantics. That is, each attribute within a group has a unique name and you query for the existence of a particular attribute in an attribute group by reference or example.

Unlike attributes, attribute groups are mutable. These classes have protocol and implementations facilitating changes and change notification.


Here is a brief summary of each class:

TAttributeGroup - an abstract base class defining the protocol for all attribute groups.

TSimpleAttributeGroup - a concrete class implementing groups of attributes. It supports neither content change notification nor attribute inheritance.

TAttributeGroupHandle - a handle to an internal attribute group. It is useful when many instances explicitly share the same group of attributes and each instance needs to know when a change is made to the group.

TInternalAttributeGroup - an attribute group that is shared by one or more TAttributeGroupHandles. It notifies its handles when it is changed. It is always accessed with a TAttributeGroupHandle or an instance of a class derived from it.

TInheritableGroupHandle - a handle to an internal group that can be inherited.

TInternalInheritableGroup - implements a parent chain of attribute groups that can be shared, enabling dynamic inheritance of attributes. It is always accessed with a TInheritableGroupHandle or an instance of a class derived from it.

CAUTION Do not have the same TInternalInheritableGroup appear more than once in a group hierarchy because it can result in an infinite loop.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker