VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ownershipHandler.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
10 
11 #pragma once
12 
13 #if DtHLA
14 
15 #include <vlutil/vlMachineTypes.h>
16 
17 #include "rtiNamespace.h"
18 
19 class DT_DLL_VL DtHlaObject;
20 
28 class DT_DLL_VL DtOwnershipHandler
29 {
30 public:
31 
33  DtOwnershipHandler();
34 
36  virtual ~DtOwnershipHandler();
37 
39  DtOwnershipHandler(const DtOwnershipHandler& other);
40 
42  DtOwnershipHandler& operator=(const DtOwnershipHandler& other);
43 
45  virtual DtOwnershipHandler* clone() const;
46 
49  virtual DtHlaObject* hlaObject();
50 
54  virtual void gainOwnership(const RTI::AttributeHandleSet& set);
55 
60  virtual void loseOwnership(const RTI::AttributeHandleSet& set);
61 
64  virtual void attributeOwnershipDivestitureNotification(
65  const RTI::AttributeHandleSet& releasedAttributes);
66 
69  virtual void attributeOwnershipAcquisitionNotification(
70  const RTI::AttributeHandleSet& securedAttributes);
71 
72 
76  virtual void requestAttributeOwnershipAssumption (
77  const RTI::AttributeHandleSet& offeredAttributes,
78 #if DtHLA_1516
79  const RTI::VariableLengthData &theTag
80 #else
81  const char* theTag
82 #endif
83  );
84 
87  virtual bool requestAttributeOwnershipRelease (
88  const RTI::AttributeHandleSet& candidateAttributes,
89 #if DtHLA_1516
90  const RTI::VariableLengthData &theTag
91 #else
92  const char* theTag
93 #endif
94  );
95 
98  virtual void confirmAttributeOwnershipAcquisitionCancellation (
99  const RTI::AttributeHandleSet& attributes);
100 
101 protected:
102 
103  friend class DtHlaObject;
104 
105  virtual void setHlaObject(DtHlaObject* obj);
106 
107 protected:
108 
109  DtHlaObject* myHlaObj;
110 };
111 
112 #endif //DtHLA

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)