home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / ccsysversi.tcl < prev    next >
Text File  |  1997-05-16  |  2KB  |  73 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)ccsysversi.tcl    /main/hindenburg/5
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)ccsysversi.tcl    /main/hindenburg/5   16 May 1997 Copyright 1997 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require_module_file "ccsystem.tcl" clearcase
  15. require_module_file "vssystemve.tcl" vcm
  16.  
  17. # This class represents a ClearCase aware system
  18. # for code generation.
  19.  
  20. Class CCSysVersion : {CCSystem VSSystemVersion} {
  21.     constructor
  22.     method destructor
  23.     method promoteFile
  24.     method promoter
  25.     method path
  26.     method localFileVersions
  27. }
  28.  
  29. constructor CCSysVersion {class this name} {
  30.     set this [CCSystem::constructor $class $this $name]
  31.     set this [VSSystemVersion::constructor $class $this $name]
  32.     # Start constructor user section
  33.     # End constructor user section
  34.     return $this
  35. }
  36.  
  37. method CCSysVersion::destructor {this} {
  38.     # Start destructor user section
  39.     # End destructor user section
  40.     $this CCSystem::destructor
  41.     $this VSSystemVersion::destructor
  42. }
  43.  
  44.  
  45. # Promote file to a CCFileLink.
  46. #
  47. method CCSysVersion::promoteFile {this file} {
  48.     CCFileLink promote $file
  49. }
  50.  
  51.  
  52. # Call promoter in VSSystemVersion.
  53. #
  54. method CCSysVersion::promoter {this} {
  55.     $this VSSystemVersion::promoter
  56. }
  57.  
  58.  
  59. # Call path of CCSystem.
  60. #
  61. method CCSysVersion::path {this} {
  62.     return [$this CCSystem::path]
  63. }
  64.  
  65.  
  66. # Resolve ambiguity: call localFileVersions of CCSystem.
  67. #
  68. method CCSysVersion::localFileVersions {this} {
  69.     return [$this CCSystem::localFileVersions]
  70. }
  71.  
  72. # Do not delete this line -- regeneration end marker
  73.