home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
mtsystem.tcl
< prev
next >
Wrap
Text File
|
1997-11-20
|
2KB
|
93 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)mtsystem.tcl /main/titanic/8
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)mtsystem.tcl /main/titanic/8 20 Nov 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "mtcontaine.tcl"
require "mtitemkeep.tcl"
Class MTSystem : {MTItemKeeper MTContainer} {
constructor
method destructor
method associations
method createConflictingObjects
method getOwners
method import
}
constructor MTSystem {class this name fromRepObj toRepObj} {
set this [MTItemKeeper::constructor $class $this $name]
set this [MTContainer::constructor $class $this $name $fromRepObj $toRepObj]
# Start constructor user section
$this setVersionableClass localFileOnlyVersions MTFile
$this setVersionableClass groupVersions MTGroup
$this setVersionableClass reused MTCorpGroup
$this selectFlag systemVersion
$this copyCommand "copy -systemVersion"
$this level System
$this createConflictingObjects
# End constructor user section
return $this
}
method MTSystem::destructor {this} {
# Start destructor user section
# End destructor user section
$this MTItemKeeper::destructor
$this MTContainer::destructor
}
method MTSystem::associations {this} {
return {localFileOnlyVersions customFileVersions groupVersions reused}
}
method MTSystem::createConflictingObjects {this} {
MTVersion::createConflictingObjects $this
$this createConflictingItemObjects
}
method MTSystem::getOwners {this} {
set owners ""
lappend owners [[$this fromRepObj] phaseVersions]
if {[$this toRepObj] != ""} {
lappend owners [[$this toRepObj] phaseVersions]
} else {
lappend owners {}
}
return $owners
}
method MTSystem::import {this} {
if {[$this toRepObj] == ""} {
return [$this MTVersion::import]
}
# import the children of the systems with 'to' object
set success 1
[$this childSet] foreach child {
if ![$child import] {
set success 0
}
}
if {$success == 1} {
# create mergelink
MTProcs::createMergeLink $this [.main mergeLinkComment]
}
return $success
}
# Do not delete this line -- regeneration end marker