home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # Copyright (c) 1993-1995 by Cadre Technologies 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 Cadre Technologies Inc.
- #
- #---------------------------------------------------------------------------
- #
- # File : @(#)oopl_disp.tcl 2.1
- # Author : frmo
- # Original date : 3-3-1993
- # Description : Pseudo OO dispatch functions
- #
- #---------------------------------------------------------------------------
- #
-
- # Pseudo OO programming in Tcl: dispatch functions for "generate",
- # "gen_initializer", "gen_class_decl", "gen_var_decl" and "gen_typedef".
-
- proc generate {args} {
- set object [lindex $args 0]
- trace_call generate $object $args
- uplevel "[$object get_obj_type]::generate $args"
- }
-
- proc gen_initializer {args} {
- set object [lindex $args 0]
- trace_call gen_initializer $object $args
- uplevel "[$object get_obj_type]::gen_initializer $args"
- }
-
- proc gen_class_decl {args} {
- set object [lindex $args 0]
- trace_call gen_class_decl $object $args
- uplevel "[$object get_obj_type]::gen_class_decl $args"
- }
-
- proc gen_var_decl {args} {
- set object [lindex $args 0]
- trace_call gen_var_decl $object $args
- uplevel "[$object get_obj_type]::gen_var_decl $args"
- }
-
- proc gen_typedef {args} {
- set object [lindex $args 0]
- trace_call gen_typedef $object $args
- uplevel \
- "[$object get_obj_type]::[$object getMultiplicity]_typedef $args"
- }
-