home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / csdbserver.tcl < prev    next >
Text File  |  1996-10-04  |  2KB  |  56 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1996
  4. #
  5. #      File:           @(#)csdbserver.tcl    /main/hindenburg/5
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)csdbserver.tcl    /main/hindenburg/5   4 Oct 1996 Copyright 1996 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "csserverno.tcl"
  15.  
  16. Class CSDbServerNode : {CSServerNode} {
  17.     constructor
  18.     method destructor
  19.     method childObjects
  20.     method createChild
  21.     method doUpdate
  22. }
  23.  
  24. constructor CSDbServerNode {class this name i_server} {
  25.     set this [CSServerNode::constructor $class $this $name $i_server]
  26.     # Start constructor user section
  27.  
  28.         $this label [$i_server name]
  29.         $this icon rep_dbsrv_16
  30.  
  31.     # End constructor user section
  32.     return $this
  33. }
  34.  
  35. method CSDbServerNode::destructor {this} {
  36.     # Start destructor user section
  37.     # End destructor user section
  38.     $this CSServerNode::destructor
  39. }
  40.  
  41. method CSDbServerNode::childObjects {this} {
  42.     set server [$this server]
  43.     return [osort pid -integer [$server clients]]
  44. }
  45.  
  46. method CSDbServerNode::createChild {this object} {
  47.     return [CSClientNode new $this.[$this childName $object] $object]
  48. }
  49.  
  50. method CSDbServerNode::doUpdate {this {rebuild 1}} {
  51.     $this CSServerNode::doUpdate $rebuild
  52. }
  53.  
  54. # Do not delete this line -- regeneration end marker
  55.  
  56.