home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
unrefd_cdms.tcl
< prev
next >
Wrap
Text File
|
1997-07-11
|
2KB
|
65 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1995
#
# File: @(#)unrefd_cdms.tcl /main/titanic/2
# Author: Harm Leijendeckers
# Description: Report on unreferenced cdm's
# Usage in: SystemVersion
#
#---------------------------------------------------------------------------
# SccsId = @(#)unrefd_cdms.tcl /main/titanic/2 11 Jul 1997 Copyright 1995 Cadre Technologies Inc.
Class ReportUnrefCdms : {ReportBase} {
constructor
method systemReport
}
constructor ReportUnrefCdms {class this} {
set this [ReportBase::constructor $class $this]
$this reportName "Unreferenced cdm's"
return $this
}
method ReportUnrefCdms::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 "Unreferred Cdm" line
[$this report] line
}
set cnfv [$cc currentConfig]
set sv [$this systemV]
set found 0
foreach item [osort name $allCdmItems] {
$sv getDecompositions $item $cnfv decompComponents \
"cad ccd cod dfd etd mgd std ucd" svs fvs
if [lempty $fvs] {
set found 1
$report print [$item name] line
}
}
if !$found {
$report print "** None **" line
}
$report page
$report remove header
return 0
}
set executeMe [ReportUnrefCdms new]