home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
referredin.tcl
< prev
next >
Wrap
Text File
|
1997-11-26
|
2KB
|
78 lines
#--------------------------------------------------------------------------->"
#
# (c) Cadre Technologies Inc. 1995
#
# File: @(#)referredin.tcl /main/titanic/3
# Author: Harm Leijendeckers
# Description: Report on all cdm's and diagrams in which they are
# referred to.
# Usage in: SystemVersion
#
#---------------------------------------------------------------------------
# SccsId = @(#)referredin.tcl /main/titanic/3 26 Nov 1997 Copyright 1995 Cadre Technologies Inc.
Class ReportReferredIn : {ReportBase} {
constructor
method systemReport
}
constructor ReportReferredIn {class this} {
set this [ReportBase::constructor $class $this]
$this reportName "CDM Referred To In CD"
return $this
}
method ReportReferredIn::systemReport {this} {
set allCdmItems [query -s file.item \
"file.type == cdm" \
[$this systemV].localFileVersions]
if [lempty $allCdmItems] { return 0 }
set report [$this report]
$report header {
[$this report] print CDM 31
[$this report] print "Referred To In CD" 51
[$this report] print "In System" line
[$this report] line
}
foreach item [osort name $allCdmItems] {
$report print [$item name] 30
$report space
set found 0
set cv [$this configV]
set sv [$this systemV]
$sv getDecompositions $item $cv { decompComponents } { cad } svs fvs
foreach fv [osort file.type file.name $fvs] {
set found 1
set file [$fv file]
set fsys [$file system]
if ![$report queued] { $report space 31 }
$report print "[$file name].[$file type].[$fv versionName]" 50
$report space
$report print "[$fsys name]" line
}
if !$found {
$report print "** None **" line
}
$report line
}
$report page
$report remove header
return 0
}
set executeMe [ReportReferredIn new]