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.
- #
- #---------------------------------------------------------------------------
-
- puts "*** cpp-accmethd loaded ***"
-
- require "cgcustom.tcl"
-
- Class AccMethodNameCust : [customizeTargetModel CppAccMethod AccMethodNameCust] {
- method getMethodName
- }
-
- method AccMethodNameCust::getMethodName {this kind name} {
-
- switch $kind {
- attrib-get {
- set fullName "get_${name}"
- }
- attrib-set {
- set fullName "set_${name}"
- }
- assoc-get {
- set fullName "get_${name}"
- }
- assoc-get-set {
- set fullName "get_${name}_set"
- }
- assoc-set {
- set fullName "set_${name}"
- }
- assoc-add {
- set fullName "add_${name}"
- }
- assoc-remove {
- set fullName "remove_${name}"
- }
- default {
- return [$this ${AccMethodNameCust::super}::getMethodName $kind $name]
- }
- }
- return $fullName
- }
-
- selfPromoter CppAccMethod {this} {
- AccMethodNameCust promote $this
- }
-