VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfTransferControlManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <vl/transferControlManager.h>
10 #include <vl/setRecordInteraction.h>
11 
12 class DtExerciseConn;
14 class DtReflectedEntity;
15 
16 #if DtHLA
17 namespace makVrfVrlinkExtToolkit
18 {
19  class DtReflectedExtendedAttributesObject;
20 }
21 
23 
25 {
27  void* userData = nullptr;
28 };
29 #else
30 using DtSetRecordInteraction = DtSetRecordPdu;
31 #endif
32 
36 namespace makVrf
37 {
38  class DtVrlinkNetworkInterface;
39 
41  {
42  public:
43 
45  DtVrfTransferControlManager(DtVrlinkNetworkInterface*, DtExerciseConn* exerciseConn);
46 
48  virtual ~DtVrfTransferControlManager();
49 
50 #if DtHLA
51  virtual void setLostOwnershipOfExtendedAttributesCallback(DtLostOwnershipOfExtendedAttributesCb func, void* usr);
54 #endif
55 
58  virtual char* detachVrfSpecificData(unsigned int);
59 
60  protected:
61  virtual DtEntityPublisher* createEntityPublisher(
62  #if DtHLA
63  DtHlaObjectWithStateRep* rep,
64  #else
66  #endif
67  DtExerciseConn* exConn) override;
68 
69  virtual DtReflectedEntity* createReflectedEntity(
70  #if DtHLA
71  DtHlaObjectWithStateRep* rep,
72  #else
74  #endif
75  DtExerciseConn* exConn) override;
76 
77 
78  virtual void processSetRecord(DtSetRecordInteraction* setRec) override;
79 
80 #if DtHLA
81  virtual void processLostOwnership(DtHlaObject* hlaObject) override;
82  virtual void processGainedOwnership(DtHlaObject* hlaObject) override;
83  virtual makVrfVrlinkExtToolkit::DtReflectedExtendedAttributesObject* createReflectedExtendedAttributesObject(DtHlaObject*, DtExerciseConn*);
84 #endif
85 
86  protected:
88  std::map<unsigned int, char*> myVrfSpecificData;
89 #if DtHLA
92  std::map<DtGlobalObjectDesignator, DtHlaObjectWithStateRep*> myObjectToExtendedAttributeMap;
93 #endif
94  };
95 }
std::map< DtGlobalObjectDesignator, DtHlaObjectWithStateRep * > myObjectToExtendedAttributeMap
Definition: vrfTransferControlManager.h:92
Definition: vrfTransferControlManager.h:24
DtLostOwnershipOfExtendedAttributesCb cbFunction
Definition: vrfTransferControlManager.h:26
Definition: vrfTransferControlManager.h:40
void * userData
Definition: vrfTransferControlManager.h:27
DtVrlinkNetworkInterface * myNetworkInterface
Definition: vrfTransferControlManager.h:87
void(* DtLostOwnershipOfExtendedAttributesCb)(makVrfVrlinkExtToolkit::DtReflectedExtendedAttributesObject *lostHlaObject, void *usr)
Definition: vrfTransferControlManager.h:22
DtLostOwnershipOfExtendedAttributesCbInfo myLostOwnershipOfExtendedAttributesFunc
Definition: vrfTransferControlManager.h:91
DtObjClassDesc * myExtendedAttributeClassDesc
Definition: vrfTransferControlManager.h:90
std::map< unsigned int, char * > myVrfSpecificData
Definition: vrfTransferControlManager.h:88
Definition: timeManagementControlHLA.h:52

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)