VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
removeEntityInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef removeEntityInteractionHLA_H_
8 #define removeEntityInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
28  void* usr);
29 
34 
35 
37 {
38 public:
39 
42 
44  virtual ~DtRemoveEntityInteraction();
45 
48 
51 
53  virtual void printData() const;
54 
56  virtual void printDataToStream(std::ostream& stream) const;
57 
59  virtual void setSenderId(const DtEntityIdentifier& id);
60  virtual const DtEntityIdentifier& senderId() const;
61 
63  virtual void setReceiverId(const DtEntityIdentifier& id);
64  virtual const DtEntityIdentifier& receiverId() const;
65 
67  virtual void setRequestId(int id);
68  virtual int requestId() const;
69 
71  virtual const char* name() const;
72 
73 public:
74 
77  static DtInteraction* create();
78 
81  static void addCallback(DtExerciseConn* conn,
82  DtRemoveEntityInteractionCb cb, void* usr,
83  DtDDMRegionSP region = DtDDMRegionSP());
84  static void removeCallback(DtExerciseConn* conn,
85  DtRemoveEntityInteractionCb cb, void* usr,
86  DtDDMRegionSP region = DtDDMRegionSP());
87 
88 protected:
89 
93 };
94 
96 {
97  myOrigEnt = id;
98 }
99 
101 {
102  return myOrigEnt;
103 }
104 
106  const DtEntityIdentifier& id)
107 {
108  myReceiveEnt = id;
109 }
110 
112 {
113  return myReceiveEnt;
114 }
115 
117 {
118  myRequestId = id;
119 }
120 
122 {
123  return myRequestId;
124 }
125 
126 inline const char* DtRemoveEntityInteraction::name() const
127 {
128  return "DtRemoveEntityInteraction";
129 }
130 
131 #endif
132 #endif
133 
134 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
void(* DtRemoveEntityInteractionCb)(DtRemoveEntityInteraction *inter, void *usr)
RemoveEntity interaction callback function signature.
Definition: removeEntityInteractionHLA.h:27
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual int requestId() const
Definition: removeEntityInteractionHLA.h:121
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
This file defines math constants and methods which may be useful in simulations.
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
Definition: interactionHLA.h:358
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the stream.
Definition: interactionHLA.h:366
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
std::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
static void addCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Register/Deregister callback function cb with conn, on all interaction class name (char*) contained i...
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
class DtRemoveEntityInteraction:
Definition: removeEntityInteractionHLA.h:36
virtual const DtEntityIdentifier & receiverId() const
Definition: removeEntityInteractionHLA.h:111
virtual const char * name() const
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Definition: removeEntityInteractionHLA.h:126
int myRequestId
Definition: removeEntityInteractionHLA.h:92
DtEntityIdentifier myOrigEnt
Definition: removeEntityInteractionHLA.h:90
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
This file provides a declaration of the class DtInteractionWithEncDec.
virtual void setReceiverId(const DtEntityIdentifier &id)
Set/Get receiver ID.
Definition: removeEntityInteractionHLA.h:105
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
virtual void setRequestId(int id)
Set/Get request ID.
Definition: removeEntityInteractionHLA.h:116
DtEntityIdentifier myReceiveEnt
Definition: removeEntityInteractionHLA.h:91
virtual const DtEntityIdentifier & senderId() const
Definition: removeEntityInteractionHLA.h:100
virtual void setSenderId(const DtEntityIdentifier &id)
Set/Get sender ID.
Definition: removeEntityInteractionHLA.h:95

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)