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 >
Wrap
Text File
|
1994-10-14
|
1KB
|
45 lines
#ifndef _KDOBMGR_
#define _KDOBMGR_
#ifndef _ISTRING_
#include <istring.hpp>
#endif
#ifndef _IRESLOCK_
#include <ireslock.hpp>
#endif
class KDobEntry;
class KDobMap;
class KData;
class KDataFactory;
class IPrivateResource;
class IWindow;
class _Export KDobManager
{
public:
KDobManager(IWindow *owner=0, IWindow *caller=0);
~KDobManager();
KData &dataObject(KDataFactory const &key);
IPrivateResource &dataLock(KDataFactory const &key);
void mergeWith(KDobManager &other);
static KDobManager &globalManager();
static KDobManager *managerFor(IWindow *window=0,
IWindow *caller=0);
static KDobManager *associate(IWindow *window,
IWindow *caller);
static void detach(IWindow *window);
private:
KDobEntry *findEntry(KDataFactory const &key);
KDobMap ↦
static KDobManager global;
IWindow *_window;
IWindow *_caller;
};
#endif