Graphisoft®

API Development KitVersion: 18

GSAPI::IAttributeProxy interface

This interface provides the necessary abstract methods to cache and later request the used API_Attributes during API_Element or API_PrimElement output.

Creating a proxy or cache for API_Attributes was necessary due to different reasons:

This interface enhances the IAPIPseudoContainer interface (from which it is derived from) with abstract methods to get and store attributes, get their additional API_AttributeDefExt info structures, and also new Begin () and End () methods which allow for enumerating only parts of this container: only attributes inside a database or even only a given type of attribute inside that database.

There's a class in the DefaultImplementation folder which implements this interface in an effective way (AttributeProxy).

Caching the used attributes works much like outputting the elements. For each element loaded through the container's GetNext () method the iterators request an attribute adapter from an attribute adapter factory, and then use that adapter to cache the attributes used by the element.

Requirements

Namespace: GSAPI

Header: IAttributeProxy.hpp

Version: API 10.21 or later

See Also

IAPIPseudoContainer interface | IAPIAttributeAdapter interface | IAPIAttributeAdapterFactory interface