convert line ends
[canaan.git] / prj / cam / src / object / proplnk_.h
blobfad63326fd6f0fc01b7d430d83dde3aa7342795d
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/object/proplnk_.h,v 1.5 2000/01/29 13:24:36 adurant Exp $
7 #pragma once
8 #ifndef __PROPLNK__H
9 #define __PROPLNK__H
11 #include <property.h>
12 #include <propfac_.h>
13 #include <linktype.h>
14 #include <linkprop.h>
16 class cDelegatedRelation;
19 class cObjIDDataOps : public cSimpleDataOps
21 public:
23 STDMETHOD(Read)(sDatum* pdat, IDataOpsFile* file, int ver);
28 class cLinkProperty : public cGenericIntProperty
30 void Init(const sRelationDesc* rdesc, const sRelationDataDesc* rddesc);
31 static void LGAPI ListenFunc(sPropertyListenMsg* msg, PropListenerData data);
33 public:
34 cLinkProperty(const sPropertyDesc* pdesc,
35 const sRelationDesc* rdesc,
36 const sRelationDataDesc* rddesc,
37 ILinkQueryDatabase* DestKnown,
38 ePropertyImpl impl);
40 cLinkProperty(const sPropertyDesc* pdesc,
41 const sRelationDesc* rdesc,
42 const sRelationDataDesc* rddesc,
43 ILinkQueryDatabase* DestKnown,
44 IPropertyStore* store);
46 virtual ~cLinkProperty();
48 STDMETHOD(QueryInterface)(REFIID id, void** ppI);
49 STDMETHOD(Set)(ObjID obj, int val);
50 STDMETHOD_(void, Notify)(ePropertyNotifyMsg msg, PropNotifyData data);
52 protected:
53 cDelegatedRelation* Relation;
54 RelationID RelID;
55 ILinkQueryDatabase* DestKnown;
56 cObjIDDataOps mOps;
61 #endif // __PROPLNK__H