home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KDOBMGR.HPP < prev    next >
Text File  |  1994-10-14  |  1KB  |  45 lines

  1. #ifndef _KDOBMGR_
  2. #define _KDOBMGR_
  3.  
  4. #ifndef _ISTRING_
  5.    #include <istring.hpp>
  6. #endif
  7.  
  8. #ifndef _IRESLOCK_
  9.    #include <ireslock.hpp>
  10. #endif
  11.  
  12. class KDobEntry;
  13. class KDobMap;
  14. class KData;
  15. class KDataFactory;
  16. class IPrivateResource;
  17. class IWindow;
  18.  
  19. class _Export KDobManager
  20. {
  21.    public:
  22.       KDobManager(IWindow *owner=0, IWindow *caller=0);
  23.       ~KDobManager();
  24.       KData   &dataObject(KDataFactory const &key);
  25.       IPrivateResource &dataLock(KDataFactory const &key);
  26.       void mergeWith(KDobManager &other);
  27.       static    KDobManager &globalManager();
  28.       static    KDobManager *managerFor(IWindow *window=0, 
  29.                                         IWindow *caller=0);
  30.       static KDobManager *associate(IWindow *window, 
  31.                                     IWindow *caller);
  32.       static void detach(IWindow *window);
  33.  
  34.    private:
  35.       KDobEntry *findEntry(KDataFactory const &key);
  36.       KDobMap   ↦
  37.       static KDobManager global;
  38.       IWindow   *_window;
  39.       IWindow   *_caller;
  40. };
  41.  
  42.  
  43.  
  44. #endif
  45.