Macro CATImplementConfigurationFactory (Config,CFactory)Defines the source file of the workbench factory class.
1) The header file MyWorkbenchFactory.h must contain these two lines: #include "CATWorkshopConfigurationFactory.h" CATDeclareConfigurationFactory(MyWorkbench); 2) The source file MyWorkbenchFactory.cpp must contain these lines: #include "MyWorkbench.h" #include "MyWorkbenchFactory.h" #include "TIE_IMyWorkbenchFactory.h" CATImplementConfigurationFactory(MyWorkbench, IMyWorkbenchFactory); 3) To declare that CATApplicationFrame implements IMyWorkbenchFactory, insert the following line in the interface dictionary: CATApplicationFrame IMyWorkbenchFactory myModule 4) To declare that the factory creates an instance of the MyWorkbench class, insert the following line in the factory dictionary: MyWorkbench IMyWorkbenchFactory
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.