12 typedef void (*DtPartialAcquireOwnershipCb)(DtHlaObject* hlaObject,
const RTI::AttributeHandleSet&,
void* usr);
13 typedef void (*DtPartialDivestOwnershipCb)(DtHlaObject* hlaObject,
const RTI::AttributeHandleSet&,
void* usr);
15 typedef bool (*DtPartialAcquireOwnershipRequestCb)(DtHlaObject* hlaObject,
const RTI::AttributeHandleSet&,
void* usr);
16 typedef bool (*DtPartialDivestOwnershipRequestCb)(DtHlaObject* hlaObject,
const RTI::AttributeHandleSet&,
void* usr);
19 struct DtPartialAcquireOwnershipCbInfo
21 DtPartialAcquireOwnershipCb cbFunction;
25 struct DtPartialDivestOwnershipCbInfo
27 DtPartialDivestOwnershipCb cbFunction;
31 struct DtPartialAcquireOwnershipRequestCbInfo
33 DtPartialAcquireOwnershipRequestCb cbFunction;
37 struct DtPartialDivestOwnershipRequestCbInfo
39 DtPartialDivestOwnershipRequestCb cbFunction;
52 DtPartialOwnershipHandler();
55 virtual ~DtPartialOwnershipHandler();
61 DtPartialOwnershipHandler(
const DtPartialOwnershipHandler& other);
64 DtPartialOwnershipHandler&
operator=(
const DtPartialOwnershipHandler& other);
69 virtual void gainOwnership(
const RTI::AttributeHandleSet&
set);
75 virtual void loseOwnership(
const RTI::AttributeHandleSet&
set);
81 virtual void addPartialAcquireOwnershipCallback(DtPartialAcquireOwnershipCb cb,
void* usr,
82 const DtObjClassDesc* desc = 0);
83 virtual void removePartialAcquireOwnershipCallback(DtPartialAcquireOwnershipCb cb,
void* usr,
84 const DtObjClassDesc* desc = 0);
91 virtual void addPartialDivestOwnershipCallback(DtPartialDivestOwnershipCb cb,
void* usr,
92 const DtObjClassDesc* desc = 0);
93 virtual void removePartialDivestOwnershipCallback(DtPartialDivestOwnershipCb cb,
void* usr,
94 const DtObjClassDesc* desc = 0);
103 virtual void addPartialAcquireOwnershipRequestCallback(DtPartialAcquireOwnershipRequestCb cb,
void* usr);
104 virtual void removePartialAcquireOwnershipRequestCallback(DtPartialAcquireOwnershipRequestCb cb,
void* usr);
113 virtual void addPartialDivestOwnershipRequestCallback(DtPartialDivestOwnershipRequestCb cb,
void* usr);
114 virtual void removePartialDivestOwnershipRequestCallback(DtPartialDivestOwnershipRequestCb cb,
void* usr);
120 std::map<RTI::ObjectClassHandle, std::list<DtPartialAcquireOwnershipCbInfo> > myPartialAcquireOwnershipCbList;
121 std::map<RTI::ObjectClassHandle, std::list<DtPartialDivestOwnershipCbInfo> > myPartialDivestOwnershipCbList;
122 std::list<DtPartialAcquireOwnershipCbInfo> myDefaultPartialAcquireOwnershipCb;
123 std::list<DtPartialDivestOwnershipCbInfo> myDefaultPartialDivestOwnershipCb;
124 std::list<DtPartialAcquireOwnershipRequestCbInfo> myPartialAcquireOwnershipRequestCbList;
125 std::list<DtPartialDivestOwnershipRequestCbInfo> myPartialDivestOwnershipRequestCbList;