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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)vssystemve.tcl    /main/hindenburg/4
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)vssystemve.tcl    /main/hindenburg/4   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.  
  15. # This class represents a VCM System system for code
  16. # generation.
  17.  
  18. Class VSSystemVersion : {SystemVersion} {
  19.     constructor
  20.     method destructor
  21.     method promoter
  22.     method getObjHandler
  23. }
  24.  
  25. constructor VSSystemVersion {class this name} {
  26.     set this [SystemVersion::constructor $class $this $name]
  27.     # Start constructor user section
  28.     # End constructor user section
  29.     return $this
  30. }
  31.  
  32. method VSSystemVersion::destructor {this} {
  33.     # Start destructor user section
  34.     # End destructor user section
  35. }
  36.  
  37.  
  38. # Initialize this system: initialize customization.
  39. #
  40. method VSSystemVersion::promoter {this} {
  41.     VSTypeMapper new $this
  42.     [$this typeMapper] initialize
  43.     require u_vcm.tcl    
  44. }
  45.  
  46.  
  47. # Create a CustObjHandler if it didn't exist yet,
  48. # return it.
  49. #
  50. method VSSystemVersion::getObjHandler {this} {
  51.     global fstorage::custObjHandler
  52.     set custObjHandler ${fstorage::custObjHandler}
  53.  
  54.     if { $custObjHandler == "" } {
  55.     set custObjHandler [CustObjHandler new]
  56.     set fstorage::custObjHandler $custObjHandler
  57.     $custObjHandler setCurrentContext
  58.     }
  59.  
  60.     return $custObjHandler
  61. }
  62.  
  63. # Do not delete this line -- regeneration end marker
  64.  
  65.