All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIGenericFactory
Usage: you can freely reimplement this interface.
interface CATIGenericFactory
Interface to generically define factories.
Role: some commands like Edit/Properties or Tools/Options
need to instanciate components programmed by applications. These applications
has to provide a factory to enable the instantiation of a component.
Usually, an object factory creates one and only one object type.
Note: There is no adapter to implement this interface, but some
commands provide macro to generate such factories.
Usage: In order to create a factory, an application defines a new
interface derived from CATIGenericFactory, implements this interface as an extension
of a given component, and inserts apropriate declarations in .dic and .fact dictionnaries.
public virtual CATBaseUnknown* Create( | const CATUnicodeString& | iIntfName)const = 0 |
public virtual unsigned char Support( | const CATUnicodeString& | iEditName)const = 0 |
Copyright © 2003, Dassault Systèmes. All rights reserved.