home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
cadinhergr.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
66 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)cadinhergr.tcl 1.4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cadinhergr.tcl 1.4 31 Jan 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
Class CADInherGroup : {SMNode} {
constructor
method destructor
method load
method addSubClass
method removeSubClass
attribute loaded
attribute superClass
attribute subClassSet
}
constructor CADInherGroup {class this inModel} {
set this [SMNode::constructor $class $this $inModel]
$this loaded 0
$this subClassSet [List new]
# Start constructor user section
# End constructor user section
return $this
}
method CADInherGroup::destructor {this} {
# Start destructor user section
# End destructor user section
}
method CADInherGroup::load {this} {
if {[$this loaded] == 1} {
return
}
$this loaded 1
foreach class [$this getOppositeObjectsIn $anySMType \
$OMT_CAD_CB_Class] {
$this superClass $class
}
foreach class [$this getOppositeObjectsOut $anySMType \
$OMT_CAD_CB_Class] {
$this addSubClass $class
}
}
# Do not delete this line -- regeneration end marker
method CADInherGroup::addSubClass {this newSubClass} {
[$this subClassSet] append $newSubClass
}
method CADInherGroup::removeSubClass {this oldSubClass} {
[$this subClassSet] removeValue $oldSubClass
}