All Frameworks  Class Hierarchy  This Framework  Indexes

ApplicationFrame Macro CATImplementHeaderSpecialResources

Macro CATImplementHeaderSpecialResources (DerivedHeader,BaseHeader,Rsrc)
Implements the methods to get the header's resource file.


The difference with CATImplementHeaderResources is that the resources files have a different name, which is useful if your header or any directly derived class can be instanciated from different frameworks.

Indeed, there can be only one resources file of the same name, whereever in the code. A more detailed explanation follows in the parameters' descriptions.

Let us imagine the following scenario:

When an application is instanciating DerivedHeader2 classes, through:
new DerivedHeader2("MyDerivedHeader2", ..., "MyFilePrefix_");
the resources for this header will be looked for:

Parameters:
DerivedHeader
Command header class name.
BaseHeader
Base class of your header class.
Rsrc
Resources file name

The keys to be filled are the same as for the
CATImplementHeaderResources macro.
They are all starting this way: FilePrefix_BaseRsc.HeaderId

See also:
CATDeclareHeaderSpecialResources, CATImplementHeaderResources

This object is included in the file: CATCommandHeader.h
If needed, your Imakefile.mk should include the module: CATApplicationFrame

Copyright © 2003, Dassault Systèmes. All rights reserved.