home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
rt_getset.tcl
< prev
next >
Wrap
Text File
|
1997-04-02
|
2KB
|
49 lines
###########################################################################
##
## Copyright (c) 1996 by Cadre Technologies Inc.
## and Scientific Toolworks 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.
## or Scientific Toolworks Inc.
##
###########################################################################
global hasGetSetMethod
set hasGetSetMethod 1
global attribAccessPropName
set attribAccessPropName "attrib_access"
global methodAccessPropName
set methodAccessPropName "method_access"
proc isGetMethod {mthd attr} {
#HM changed prefix for get to match code generator
set capname "Get_[string toupper [string range [$attr name] 0 0]][ \
string range [$attr name] 1 end]"
if {$capname == [$mthd name]} {
return 1
} else {
return 0
}
}
proc isSetMethod {mthd attr} {
#HM changed prefix for set to match code generator
set capname "Set_[string toupper [string range [$attr name] 0 0]][ \
string range [$attr name] 1 end]"
if {$capname == [$mthd name] } {
return 1
} else {
return 0
}
}