home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / cbassociat.tcl < prev    next >
Text File  |  1996-05-29  |  1KB  |  46 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Westmount Technology    1994
  4. #
  5. #      File:           @(#)cbassociat.tcl    1.2
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)cbassociat.tcl    1.2   28 Jul 1995 Copyright 1994 Westmount Technology
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "cbtlentry.tcl"
  15.  
  16. Class CBAssociation : {CBTLEntry} {
  17.     constructor
  18.     method destructor
  19. }
  20.  
  21. constructor CBAssociation {class this name} {
  22.     set this [CBTLEntry::constructor $class $this $name]
  23.     # Start constructor user section
  24.     # End constructor user section
  25.     return $this
  26. }
  27.  
  28. method CBAssociation::destructor {this} {
  29.     # Start destructor user section
  30.     # End destructor user section
  31.     $this CBTLEntry::destructor
  32. }
  33.  
  34. proc CBAssociation::multKindToString {multKind} {
  35.     if {$multKind == "many"} {
  36.         return "*"
  37.     }
  38.     if {$multKind == "optional"} {
  39.         return "o"
  40.     }
  41.     return "-"
  42. }
  43.  
  44. # Do not delete this line -- regeneration end marker
  45.  
  46.