home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
projects.tcl
< prev
next >
Wrap
Text File
|
1997-08-26
|
3KB
|
121 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)projects.tcl /main/titanic/4
# Author: M. van Leeuwen
# Description: Report on projects & configurations with properties
# Usage in: Wherever appropriate
# History: Derived from projects.tcl
#
#---------------------------------------------------------------------------
# SccsId = @(#)projects.tcl /main/titanic/4 26 Aug 1997 Copyright 1997 Cayenne Software Inc.
Class ReportProjects : {ReportBase} {
constructor
attribute printProps
method corporateReport
method projectReport
method configReport
method phaseReport
method systemReport
method fileReport
}
constructor ReportProjects {class this} {
set this [ReportBase::constructor $class $this]
if { [lsearch $Options "properties"] != -1 } {
$this printProps 1
} else {
$this printProps 0
}
$this reportName "Projects and Configurations"
return $this
}
method ReportProjects::corporateReport {this} {
set report [$this report]
set corp [$this corporate]
$report header {
$report print Object 25
$report print Type 25
$report print Owner 20
$report print Version 16
$report print Status 12
$report print Creator line
$report line
}
$report print [$corp name] 24
$report space
$report print [$corp ORB_class] line
if [$this printProps] {
$this showProperties $corp
}
foreach project [osort name [$corp projects]] {
$report print [$project name] 24
$report space
$report print [$project ORB_class] line
if [$this printProps] {
$this showProperties $project
}
foreach cv [osort config.name versionNumber -versnum \
[$project configVersions]] {
$report print [[$cv config] name] 24
$report space
$report print [$cv ORB_class] 24
$report space
$report print [$project name] 19
$report space
$report print [$cv versionNumber] 15
$report space
$report print [$cv status] 11 break
$report space
$report print [$cv creator] line
if [$this printProps] {
$this showProperties $cv
}
}
}
$report page
return 0
}
# overload all others so this report can be executed on all levels
#
method ReportProjects::projectReport {this} {
return [$this corporateReport]
}
method ReportProjects::configReport {this} {
return [$this corporateReport]
}
method ReportProjects::phaseReport {this} {
return [$this corporateReport]
}
method ReportProjects::systemReport {this} {
return [$this corporateReport]
}
method ReportProjects::fileReport {this} {
return [$this corporateReport]
}
# ----------------------------------------------------------------------
#
set executeMe [ReportProjects new]