home *** CD-ROM | disk | FTP | other *** search
- --------------------------------------------------------------------------------
- --
- -- COPYRIGHT:
- -- IBM WorkFrame - Project Smarts
- -- (C) Copyright International Business Machines Corporation 1996
- -- Licensed Material - Program-Property of IBM - All Rights Reserved.
- -- US Government Users Restricted Rights - Use, duplication, or disclosure
- -- restricted by GSA ADP Schedule Contract with IBM Corp.
- --
- --------------------------------------------------------------------------------
- <include prologcp.tde>
-
- <repeat CLASS_NAME>
- #define EXorImp_$CLASS_NAME$ _Export
- </repeat>
-
- <repeat HEADER_NAME>
- #include "$HEADER_NAME$.hh"
- </repeat>
-
-
- //
- // An initialization function for the class library must be provided to
- // support dynamic loading of the library by the SOM Class Manager.
- // The name of this function is SOMInitModule.
- //
- void __stdcall _Export SOMInitModule(long majorVersion,
- long minorVersion,
- string className)
- {
- //
- // Set the major and minor version for each class.
- // NOTE: use the SOM class name set via #pragma SOMClassName, NOT the
- // C++ class name.
- //
- <repeat SOM_CLASS_NAME>
- $SOM_CLASS_NAME$NewClass($SOM_CLASS_NAME$_MajorVersion, $SOM_CLASS_NAME$_MinorVersion);
- </repeat>
-
- }
-