home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # Copyright (c) 1997 by Cayenne Software, Inc.
- #
- # This software is furnished under a license and may be used only in
- # accordance with the terms of such license and with the inclusion of
- # the above copyright notice. This software or any other copies thereof
- # may not be provided or otherwise made available to any other person.
- # No title to and ownership of the software is hereby transferred.
- #
- # The information in this software is subject to change without notice
- # and should not be construed as a commitment by Cayenne Software, Inc.
- #
- #---------------------------------------------------------------------------
- #
- # File : @(#)cgcustom.tcl /main/titanic/1
- # Description : Some procedures to be able to customize the
- # codegenerators in an easy way
- #---------------------------------------------------------------------------
- #
- # @(#)cgcustom.tcl /main/titanic/1 4 Aug 1997
- #
- #---------------------------------------------------------------------------
-
- proc customizeTargetModel {targetModelClass customClass} {
- global mostDerivedTarget
- global ${customClass}::super
- set super $targetModelClass
- if [info exists mostDerivedTarget($targetModelClass)] {
- set super $mostDerivedTarget($targetModelClass)
- }
- set ${customClass}::super $super
- set mostDerivedTarget($targetModelClass) $customClass
- return $super
- }
-
- proc customizeOOPLModel {ooplModelClass customClass} {
- global mostDerivedOOPL
- global ${customClass}::super
- set super $ooplModelClass
- if [info exists mostDerivedOOPL($ooplModelClass)] {
- set super $mostDerivedOOPL($ooplModelClass)
- }
- set ${customClass}::super $super
- set mostDerivedOOPL($ooplModelClass) $customClass
- return $super
- }
-