All Frameworks Class Hierarchy This Framework Indexes
Macro CATDeclareWorkshopFactory (Workshop)Defines the header file of a workshop factory class.
1) The header file MyWorkshopFactory.h must contain these two lines:
#include "CATWorkshopFactory.h"
CATDeclareWorkshopFactory(MyWorkshop);
2) The source file MyWorkshopFactory.cpp must contain these lines:
#include "MyWorkshop.h"
#include "MyWorkshopFactory.h"
#include "TIE_IMyWorkshopFactory.h"
CATImplementWorkshopFactory(MyWorkshop, IMyWorkshopFactory);
3) To declare that CATApplicationFrame implements IMyWorkshopFactory,
insert the following line in the interface dictionary:
CATApplicationFrame IMyWorkshopFactory myModule
4) To declare that the factory creates an instance of the MyWorkshop class,
insert the following line in the factory dictionary:
MyWorkshop IMyWorkshopFactory
Copyright © 2003, Dassault Systèmes. All rights reserved.