home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / P1 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.2 KB  |  45 lines

  1. #ifndef __RWMODEL_H__
  2. #define __RWMODEL_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWModel --- maintains a list of dependent clients
  7.  *
  8.  * $Header:   E:/vcs/rw/model.h_v   1.1   18 Feb 1992 09:55:34   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave 
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  16.  *
  17.  * Copyright (C) 1991. This software is subject to copyright 
  18.  * protection under the laws of the United States and other countries.
  19.  *
  20.  ***************************************************************************
  21.  *
  22.  * $Log:   E:/vcs/rw/model.h_v  $
  23.  * 
  24.  *    Rev 1.1   18 Feb 1992 09:55:34   KEFFER
  25.  * 
  26.  *    Rev 1.0   12 Nov 1991 13:13:18   keffer
  27.  * Initial revision.
  28.  */
  29.  
  30. #include "rw/ordcltn.h"
  31.  
  32. class RWExport RWModel : public RWCollectable {
  33.   RWOrdered    dependList;
  34. public:
  35.   RWModel();
  36.   void        addDependent(RWModel*);
  37.   void        removeDependent(RWModel*);
  38.   RWOrdered*    dependents();
  39.   virtual void    changed();    // Notify all dependents
  40.   virtual void    updateFrom(RWModel*) = 0;
  41. };
  42.  
  43. pragma pop_align_members();
  44. #endif    /* __RWMODEL_H__ */
  45.