home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
vacppoopl.tcl
< prev
next >
Wrap
Text File
|
1997-12-01
|
35KB
|
1,156 lines
#---------------------------------------------------------------------------
#
# 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 : vacppoopl.tcl
# Author :
# Original date : November 1997
# Description : Classes for code generation
#
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# File: @(#)vaccls.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACCls : {Object} {
constructor
method destructor
method includeFileName
method includeDefine
method vaGenerateSub
attribute target
}
constructor VACCls {class this} {
set this [Object::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method VACCls::destructor {this} {
# Start destructor user section
# End destructor user section
}
method VACCls::includeFileName {this} {
if {[$this target] != ""} {
return [[$this target] hdrFileName]
}
return ""
}
method VACCls::includeDefine {this} {
if {[$this target] != ""} {
return [[$this target] protector]
}
return ""
}
method VACCls::vaGenerateSub {this tgl} {
$tgl name [$this getName]
set comment [VAComment new]
$comment comment [$this getPropertyValue "freeText"]
$tgl comment $comment
$tgl description [$this getPropertyValue "description"]
$tgl includeFileName [$this includeFileName]
$tgl includeDefine [$this includeDefine]
}
# Do not delete this line -- regeneration end marker
#---------------------------------------------------------------------------
# File: @(#)vacdataatt.tcl /main/titanic/2
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDataAttr : [customizeOOPLModel OPDataAttr VACDataAttr] {
constructor
method destructor
method vaGenerate
method generate
attribute queryMember
attribute setMember
attribute type
}
constructor VACDataAttr {class this} {
global VACDataAttr::super
set this [${VACDataAttr::super}::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method VACDataAttr::destructor {this} {
# Start destructor user section
# End destructor user section
}
method VACDataAttr::vaGenerate {this tgl} {
set cl [VAAttribute new]
$cl name [$this getName]
set comment [VAComment new]
$comment comment [$this getPropertyValue "freeText"]
$cl comment $comment
$cl description [$this getPropertyValue "description"]
$cl noSetting [$this getPropertyValue "nosetting"]
$cl noConnect [$this getPropertyValue "noconnect"]
$cl preferred [$this getPropertyValue "preferredfeature"]
$cl type [$this type]
$cl queryMember [$this queryMember]
$cl setMember [$this setMember]
$tgl addAttribute $cl
}
method VACDataAttr::generate {this tgt} {
set res [$this ${VACDataAttr::super}::generate $tgt]
if {$res != ""} {
if {[$res type] != ""} {
$this type [[$res type] getTypeName "hdr" ""]
}
[$res accMethodSet] foreach methd {
if {[$methd kind] == "get"} {
set txt [TextSection new]
$methd genSignature "va" $txt
$this queryMember [$txt contents]
} else {
if {[$methd kind] == "set"} {
set txt [TextSection new]
$methd genSignature "va" $txt
$this setMember [$txt contents]
}
}
}
}
return res
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDataAttr {this} {
VACDataAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacoperati.tcl /main/titanic/4
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACOperation : [customizeOOPLModel OPOperation VACOperation] {
constructor
method destructor
method vaGenerate
method generate
method checkLocal
attribute actionMember
attribute returnType
}
constructor VACOperation {class this} {
global VACOperation::super
set this [${VACOperation::super}::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method VACOperation::destructor {this} {
# Start destructor user section
# End destructor user section
}
method VACOperation::vaGenerate {this tgl} {
if {[$this getName] != "create" || ![$this isClassFeature]} {
set cl [VAAction new]
$cl name [$this getPropertyValue "action_name"]
if {[$cl name] == ""} {
$cl name [$this getName]
}
set comment [VAComment new]
$comment comment [$this getPropertyValue "freeText"]
$cl comment $comment
$cl description [$this getPropertyValue "description"]
$cl preferred [$this getPropertyValue "preferredfeature"]
$cl noConnect [$this getPropertyValue "noconnect"]
$cl returnType [$this returnType]
$cl actionMember [$this actionMember]
$tgl addAction $cl
}
}
method VACOperation::generate {this tgt} {
set res [$this ${VACOperation::super}::generate $tgt]
if {$res != ""} {
set txt [TextSection new]
$res genSignature "va" $txt
$this actionMember [$txt contents]
if {[$res type] != ""} {
$this returnType [[$res type] getTypeName "hdr" ""]
}
}
return res
}
method VACOperation::checkLocal {this} {
set res [$this ${VACOperation::super}::checkLocal]
if {[$this getName] == "operator" || [$this getName] == "operatorCOMMA"} {
m4_error $E_ILLEGALMNAME [$this getName]
incr res 1
}
return $res
}
# Do not delete this line -- regeneration end marker
selfPromoter OPOperation {this} {
VACOperation promote $this
}
#---------------------------------------------------------------------------
# File: @(#)genassocat.tcl /main/titanic/4
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class GenAssocAttr : {Object} {
constructor
method destructor
method vaGenerate
method generateSub
attribute setMember
attribute getMember
attribute removeMember
attribute addMember
attribute setMemberName
attribute getMemberName
attribute removeName
attribute addName
attribute getType
attribute aType
attribute aName
}
constructor GenAssocAttr {class this} {
set this [Object::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method GenAssocAttr::destructor {this} {
# Start destructor user section
# End destructor user section
}
method GenAssocAttr::vaGenerate {this tgl} {
set cl [VAAttribute new]
$cl name [$this aName]
$cl description "association-attribute-storage"
$cl noSetting 1
$cl noConnect 1
$cl type [$this aType]
$cl queryMember "void dummy()"
$tgl addAttribute $cl
set setm [$this setMember]
if {$setm != ""} {
set cl [VAAction new]
$cl name [$this setMemberName]
$cl actionMember $setm
$cl description "association-accessor-method"
$tgl addAction $cl
}
set addm [$this addMember]
if {$addm != ""} {
set cl [VAAction new]
$cl name [$this addName]
$cl actionMember $addm
$cl description "association-accessor-method"
$tgl addAction $cl
}
set remm [$this removeMember]
if {$remm != ""} {
set cl [VAAction new]
$cl name [$this removeName]
$cl actionMember $remm
$cl description "association-accessor-method"
$tgl addAction $cl
}
set getm [$this getMember]
if {$getm != ""} {
set cl [VAAction new]
$cl name [$this getMemberName]
$cl returnType [$this getType]
$cl actionMember $getm
$cl description "association-accessor-method"
$tgl addAction $cl
}
}
method GenAssocAttr::generateSub {this res} {
if {$res != ""} {
$this aName [$res getName]
$this aType [[$res type] getTypeName "hdr" ""]
[$res accMethodSet] foreach methd {
if {[$methd kind] == "get"} {
set txt [TextSection new]
$methd genSignature "va" $txt
$this getMember [$txt contents]
$this getMemberName [$methd name]
$this getType [[$methd type] getTypeName "hdr" ""]
} else {
if {[$methd kind] == "set"} {
set txt [TextSection new]
$methd genSignature "va" $txt
$this setMember [$txt contents]
$this setMemberName [$methd name]
} else {
if {[$methd kind] == "add"} {
set txt [TextSection new]
$methd genSignature "va" $txt
$this addMember [$txt contents]
$this addName [$methd name]
} else {
if {[$methd kind] == "remove"} {
set txt [TextSection new]
$methd genSignature "va" $txt
$this removeMember [$txt contents]
$this removeName [$methd name]
}
}
}
}
}
}
return $res
}
# Do not delete this line -- regeneration end marker
#---------------------------------------------------------------------------
# File: @(#)vacqualass.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACQualAssocAttr : [list [customizeOOPLModel OPQualAssocAttr VACQualAssocAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACQualAssocAttr {class this} {
global VACQualAssocAttr::super
set this [${VACQualAssocAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACQualAssocAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACQualAssocAttr::generate {this tgt} {
return [$this generateSub [$this ${VACQualAssocAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPQualAssocAttr {this} {
VACQualAssocAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacquallin.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACQualLinkAttr : [list [customizeOOPLModel OPQualLinkAttr VACQualLinkAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACQualLinkAttr {class this} {
global VACQualLinkAttr::super
set this [${VACQualLinkAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACQualLinkAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACQualLinkAttr::generate {this tgt} {
return [$this generateSub [$this ${VACQualLinkAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPQualLinkAttr {this} {
VACQualLinkAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)typedef.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class TypeDef : {VACCls} {
constructor
method destructor
method vaGenerate
}
constructor TypeDef {class this} {
set this [VACCls::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method TypeDef::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACCls::destructor
}
method TypeDef::vaGenerate {this tgl} {
set cl [VACPPTypeDef new]
$this vaGenerateSub $cl
$tgl setTypedef [$cl name] $cl
}
# Do not delete this line -- regeneration end marker
#---------------------------------------------------------------------------
# File: @(#)vacdbquala.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDBQualAssocAttr : [list [customizeOOPLModel OPDBQualAssocAttr VACDBQualAssocAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACDBQualAssocAttr {class this} {
global VACDBQualAssocAttr::super
set this [${VACDBQualAssocAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDBQualAssocAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACDBQualAssocAttr::generate {this tgt} {
return [$this generateSub [$this ${VACDBQualAssocAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDBQualAssocAttr {this} {
VACDBQualAssocAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacsclass.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACSClass : {VACCls} {
constructor
method destructor
method vaConstructor
method vaGenerate
}
constructor VACSClass {class this} {
set this [VACCls::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACSClass::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACCls::destructor
}
method VACSClass::vaConstructor {this} {
if {[$this target] != ""} {
[[$this target] featureSet] foreach feature {
if {[$feature isA CppConstructor]} {
set txt [TextSection new]
$feature genSignature "va" $txt
return [$txt contents]
}
}
}
return ""
}
method VACSClass::vaGenerate {this tgl} {
set cl [VACPPClass new]
$this vaGenerateSub $cl
$cl iconResourceId [$this getPropertyValue "icon_resource_id"]
$cl resourceDll [$this getPropertyValue "resource_dll"]
$cl abstract [$this getPropertyValue "abstract"]
if {[llength [$this genNodeSet]] > 0} {
$cl parentName [[[lindex [$this genNodeSet] 0] superClass] getName]
}
set temp ""
if {[$this getPropertyValue "nobaseclass"] == 1} {
set temp "${temp}noBaseClass "
}
if {[$this getPropertyValue "noedit"] == 1} {
set temp "${temp}noEdit "
}
if {[$this getPropertyValue "noshow"] == 1} {
set temp "${temp}noShow "
}
if {[$this getPropertyValue "noadd"] == 1} {
set temp "${temp}noAdd "
}
if {[$this getPropertyValue "nodefctr "] == 1} {
set temp "${temp}noDefCtr "
}
$cl constraints $temp
$cl constructor [$this vaConstructor]
foreach feature [$this dataAttrSet] {
$feature vaGenerate $cl
}
foreach feature [$this genAssocAttrSet] {
$feature vaGenerate $cl
}
foreach feature [$this operationSet] {
$feature vaGenerate $cl
}
$tgl setCls [$cl name] $cl
$tgl setCls [$cl name] $cl
}
# Do not delete this line -- regeneration end marker
#---------------------------------------------------------------------------
# File: @(#)vacclass.tcl /main/titanic/3
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACClass : [list [customizeOOPLModel OPClass VACClass] VACSClass] {
constructor
method destructor
method generate
}
constructor VACClass {class this} {
global VACClass::super
set this [${VACClass::super}::constructor $class $this $name]
set this [VACSClass::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACClass::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACSClass::destructor
}
method VACClass::generate {this res} {
$this target [$this ${VACClass::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPClass {this} {
VACClass promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacdblinkc.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDBLinkClass : [list [customizeOOPLModel OPDBLinkClass VACDBLinkClass] VACSClass] {
constructor
method destructor
method generate
}
constructor VACDBLinkClass {class this} {
global VACDBLinkClass::super
set this [${VACDBLinkClass::super}::constructor $class $this $name]
set this [VACSClass::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDBLinkClass::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACSClass::destructor
}
method VACDBLinkClass::generate {this res} {
$this target [$this ${VACDBLinkClass::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDBLinkClass {this} {
VACDBLinkClass promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacdblinka.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDBLinkAttr : [list [customizeOOPLModel OPDBLinkAttr VACDBLinkAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACDBLinkAttr {class this} {
global VACDBLinkAttr::super
set this [${VACDBLinkAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDBLinkAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACDBLinkAttr::generate {this tgt} {
return [$this generateSub [$this ${VACDBLinkAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDBLinkAttr {this} {
VACDBLinkAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacdbassoc.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDBAssocAttr : [list [customizeOOPLModel OPDBAssocAttr VACDBAssocAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACDBAssocAttr {class this} {
global VACDBAssocAttr::super
set this [${VACDBAssocAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDBAssocAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACDBAssocAttr::generate {this tgt} {
return [$this generateSub [$this ${VACDBAssocAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDBAssocAttr {this} {
VACDBAssocAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacassocat.tcl /main/titanic/3
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACAssocAttr : [list [customizeOOPLModel OPAssocAttr VACAssocAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACAssocAttr {class this} {
global VACAssocAttr::super
set this [${VACAssocAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACAssocAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACAssocAttr::generate {this tgt} {
return [$this generateSub [$this ${VACAssocAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPAssocAttr {this} {
VACAssocAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vaclinkcla.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACLinkClass : [list [customizeOOPLModel OPLinkClass VACLinkClass] VACSClass] {
constructor
method destructor
method generate
}
constructor VACLinkClass {class this} {
global VACLinkClass::super
set this [${VACLinkClass::super}::constructor $class $this $name]
set this [VACSClass::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACLinkClass::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACSClass::destructor
}
method VACLinkClass::generate {this res} {
$this target [$this ${VACLinkClass::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPLinkClass {this} {
VACLinkClass promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacclasstd.tcl /main/titanic/2
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACClassTDef : [list [customizeOOPLModel OPClassTDef VACClassTDef] TypeDef] {
constructor
method destructor
method generate
}
constructor VACClassTDef {class this} {
global VACClassTDef::super
set this [${VACClassTDef::super}::constructor $class $this $name]
set this [TypeDef::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACClassTDef::destructor {this} {
# Start destructor user section
# End destructor user section
$this TypeDef::destructor
}
method VACClassTDef::generate {this res} {
$this target [$this ${VACClassTDef::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPClassTDef {this} {
VACClassTDef promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacdbrever.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDBReverseLinkAttr : [list [customizeOOPLModel OPDBReverseLinkAttr VACDBReverseLinkAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACDBReverseLinkAttr {class this} {
global VACDBReverseLinkAttr::super
set this [${VACDBReverseLinkAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDBReverseLinkAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACDBReverseLinkAttr::generate {this tgt} {
return [$this generateSub [$this ${VACDBReverseLinkAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDBReverseLinkAttr {this} {
VACDBReverseLinkAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacclassge.tcl /main/titanic/2
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACClassGenericTypeDef : [list [customizeOOPLModel OPClassGenericTypeDef VACClassGenericTypeDef] TypeDef] {
constructor
method destructor
method generate
}
constructor VACClassGenericTypeDef {class this} {
global VACClassGenericTypeDef::super
set this [${VACClassGenericTypeDef::super}::constructor $class $this $name]
set this [TypeDef::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACClassGenericTypeDef::destructor {this} {
# Start destructor user section
# End destructor user section
$this TypeDef::destructor
}
method VACClassGenericTypeDef::generate {this res} {
$this target [$this ${VACClassGenericTypeDef::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPClassGenericTypeDef {this} {
VACClassGenericTypeDef promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacdbquall.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDBQualLinkAttr : [list [customizeOOPLModel OPDBQualLinkAttr VACDBQualLinkAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACDBQualLinkAttr {class this} {
global VACDBQualLinkAttr::super
set this [${VACDBQualLinkAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDBQualLinkAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACDBQualLinkAttr::generate {this tgt} {
return [$this generateSub [$this ${VACDBQualLinkAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDBQualLinkAttr {this} {
VACDBQualLinkAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vaclinkatt.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACLinkAttr : [list [customizeOOPLModel OPLinkAttr VACLinkAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACLinkAttr {class this} {
global VACLinkAttr::super
set this [${VACLinkAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACLinkAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACLinkAttr::generate {this tgt} {
return [$this generateSub [$this ${VACLinkAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPLinkAttr {this} {
VACLinkAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacreverse.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACReverseLinkAttr : [list [customizeOOPLModel OPReverseLinkAttr VACReverseLinkAttr] GenAssocAttr] {
constructor
method destructor
method generate
}
constructor VACReverseLinkAttr {class this} {
global VACReverseLinkAttr::super
set this [${VACReverseLinkAttr::super}::constructor $class $this $name]
set this [GenAssocAttr::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACReverseLinkAttr::destructor {this} {
# Start destructor user section
# End destructor user section
$this GenAssocAttr::destructor
}
method VACReverseLinkAttr::generate {this tgt} {
return [$this generateSub [$this ${VACReverseLinkAttr::super}::generate $tgt]]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPReverseLinkAttr {this} {
VACReverseLinkAttr promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacclassen.tcl /main/titanic/2
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACClassEnum : [list [customizeOOPLModel OPClassEnum VACClassEnum] VACCls] {
constructor
method destructor
method vaGenerate
method generate
}
constructor VACClassEnum {class this} {
global VACClassEnum::super
set this [${VACClassEnum::super}::constructor $class $this $name]
set this [VACCls::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACClassEnum::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACCls::destructor
}
method VACClassEnum::vaGenerate {this tgl} {
set cl [VACPPEnums new]
$this vaGenerateSub $cl
foreach enum [$this dataAttrSet] {
set temp [VAEnum new]
$temp name [$enum getName]
$temp value [$enum getInitialValue]
$cl addEnum $temp
}
$tgl setEnum [$cl name] $cl
}
method VACClassEnum::generate {this res} {
$this target [$this ${VACClassEnum::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPClassEnum {this} {
VACClassEnum promote $this
}
#---------------------------------------------------------------------------
# File: @(#)vacdatabas.tcl /main/titanic/1
#---------------------------------------------------------------------------
# Start user added include file section
# End user added include file section
Class VACDatabaseClass : [list [customizeOOPLModel OPDatabaseClass VACDatabaseClass] VACSClass] {
constructor
method destructor
method generate
}
constructor VACDatabaseClass {class this} {
global VACDatabaseClass::super
set this [${VACDatabaseClass::super}::constructor $class $this $name]
set this [VACSClass::constructor $class $this]
# Start constructor user section
# End constructor user section
return $this
}
method VACDatabaseClass::destructor {this} {
# Start destructor user section
# End destructor user section
$this VACSClass::destructor
}
method VACDatabaseClass::generate {this res} {
$this target [$this ${VACDatabaseClass::super}::generate $res]
return [$this target]
}
# Do not delete this line -- regeneration end marker
selfPromoter OPDatabaseClass {this} {
VACDatabaseClass promote $this
}