2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
6 // $Header: r:/t2repos/thief2/src/object/linksto_.h,v 1.5 2000/01/29 13:23:35 adurant Exp $
14 ////////////////////////////////////////////////////////////
15 // BASE LINK STORE/DATA STORE CLASSES
19 class cBaseLinkStore
: public ILinkStore
, protected cLinkManagerKnower
22 DECLARE_UNAGGREGATABLE();
24 // Dumb default implementations that just run queries and do the right thing.
26 STDMETHOD(Save
)(RelationID id
, IUnknown
* file
, int filetype
);
27 STDMETHOD(Load
)(RelationID id
, IUnknown
* file
, int filetype
);
28 STDMETHOD(Reset
)(RelationID id
);
30 STDMETHOD(RemoveRelation
)(RelationID
) { return S_OK
; };
36 class cBaseLinkDataStore
: public ILinkDataStore
, protected cLinkManagerKnower
39 DECLARE_UNAGGREGATABLE();
41 // Dumb default implementations that just run queries and do the right thing.
43 STDMETHOD(AddRelation
)(RelationID id
);
44 STDMETHOD(RemoveRelation
)(RelationID
) { return S_OK
; };
45 STDMETHOD(Add
)(LinkID id
);
46 STDMETHOD(Remove
)(LinkID id
);
47 STDMETHOD(Save
)(RelationID id
, IUnknown
* file
, int filetype
);
48 STDMETHOD(Load
)(RelationID id
, IUnknown
* file
, int filetype
);
49 STDMETHOD(Reset
)(RelationID id
);
53 #endif // __LINKSTO__H