VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrlinkOwnershipTransferTranslator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
8 #pragma once
9 
12 #include <vl/transferControlInteraction.h>
13 #include <vl/acknowledgeInteraction.h>
14 
15 #include <vrfutil/uuid.h>
16 
18 class DtEntityPublisher;
19 class DtReflectedEntity;
20 class DtReflectedDIGuyObject;
21 
22 #if DtHLA
23 class DtHlaObject;
24 namespace makVrfVrlinkExtToolkit
25 {
26  class DtReflectedExtendedAttributesObject;
27 }
28 #endif
29 
30 namespace makVrfEvents
31 {
32  class DtInitiateTakeEvent;
33  class DtTransferResponseEvent;
34 }
35 
36 namespace makVrf
37 {
38  class DtVrfTransferControlManager;
39 
41  {
42  public:
44  {
45  VrfDatumRecord = 613
46  };
47 
48  public:
50  virtual ~DtVrlinkOwnershipTransferTranslator() override;
51 
52  virtual void init(DtVrlinkNetworkInterface*) override;
53 
54  static void transferControlRequestNotificationCallback(DtTransferControlInteraction* tci, void* user);
55  virtual void processTransferControlRequestNotification(DtTransferControlInteraction*);
56 
57  static void incomingTimeoutOfTransferCallback(DtU32 requestIdentifier, const DtGlobalObjectDesignator& transferredEntityId, void* user);
58  virtual void processIncomingTimeoutOfTransfer(DtU32 requestIdentifier, const DtGlobalObjectDesignator& transferredEntityId);
59 
60  static void outgoingTimeoutOfTransferCallback(DtU32 requestIdentifier, const DtGlobalObjectDesignator& transferredEntityId, void* user);
61  virtual void processOutgoingTimeoutOfTransfer(DtU32 requestIdentifier, const DtGlobalObjectDesignator& transferredEntityId);
62 
63  static void acknowledgeMentNotificationCallback(DtAcknowledgeInteraction* tci, void* user);
64  virtual void processAcknowledgeMentNotification(DtAcknowledgeInteraction*);
65 
66  static void gainedOwnershipOfEntityCallback(DtEntityPublisher* newEntityPublisher, DtU32 requestIdentifier, void* usr);
67  virtual void processGainedOwnershipOfEntity(DtEntityPublisher* newEntityPublisher, DtU32 requestIdentifier);
68 
70  virtual bool supportsOwnershipTransfer() const;
71 
72  protected:
73  virtual bool processEvent(const makVrfEvents::DtEvent&) override;
74  static void lostOwnershipOfEntityCallback(DtReflectedEntity* lostEntity, void* usr);
75  virtual void processLostOwnershipOfEntity(DtReflectedEntity* lostEntity);
76 
77 #if DtHLA
78  static bool pullRequestCallback(DtHlaObject*, void*);
79  static void lostOwnershipOfDIGuyCallback(DtReflectedDIGuyObject* lostDiguy, void* usr);
80  virtual void processLostOwnershipOfDIGuy(DtReflectedDIGuyObject* lostDiguy);
81 
82  static void lostOwnershipOfExtendedAttributesCallback(makVrfVrlinkExtToolkit::DtReflectedExtendedAttributesObject* lostExtAttr, void* usr);
83  virtual void processLostOwnershipOfExtendedAttributes(makVrfVrlinkExtToolkit::DtReflectedExtendedAttributesObject* lostExtAttr);
84 #endif
85 
86  virtual void initiateTake(const makVrfEvents::DtInitiateTakeEvent&);
87  virtual void transferResponse(const makVrfEvents::DtTransferResponseEvent&);
88 
89  protected:
90  DtVrfTransferControlManager* myControlManager = nullptr;
91  std::set<DtUUID> myAwaitingTransfer;
92  };
93 }
Contains the DtUUID class declaration.
Definition: vrfTransferControlManager.h:40
Definition: event.h:13
Definition: initiateTakeEvent.h:15
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Definition: transferResponseEvent.h:15

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)