VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
createEntityInteractionHLA.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 createEntityInteractionHLA_H_
8 #define createEntityInteractionHLA_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  DtCreateEntityInteraction* inter, void* usr);
29 
30 
31 
36 {
37 public:
38 
41 
43  virtual ~DtCreateEntityInteraction();
44 
47 
50 
52  virtual void printData() const;
53 
55  virtual void printDataToStream(std::ostream& stream) const;
56 
58  virtual void setSenderId(const DtEntityIdentifier& id);
59  virtual const DtEntityIdentifier& senderId() const;
60 
62  virtual void setReceiverId(const DtEntityIdentifier& id);
63  virtual const DtEntityIdentifier& receiverId() const;
64 
66  virtual void setRequestId(int id);
67  virtual int requestId() const;
68 
70  virtual const char* name() const;
71 
72 public:
73 
76  static DtInteraction* create();
77 
80  static void addCallback(DtExerciseConn* conn,
81  DtCreateEntityInteractionCb cb, void* usr,
82  DtDDMRegionSP region = DtDDMRegionSP());
83  static void removeCallback(DtExerciseConn* conn,
84  DtCreateEntityInteractionCb cb, void* usr,
85  DtDDMRegionSP region = DtDDMRegionSP());
86 
87 protected:
88 
92 };
93 
95 {
96  myOrigEnt = id;
97 }
98 
100 {
101  return myOrigEnt;
102 }
103 
105  const DtEntityIdentifier& id)
106 {
107  myReceiveEnt = id;
108 }
109 
111 {
112  return myReceiveEnt;
113 }
114 
116 {
117  myRequestId = id;
118 }
119 
121 {
122  return myRequestId;
123 }
124 
125 inline const char* DtCreateEntityInteraction::name() const
126 {
127  return "DtCreateEntityInteraction";
128 }
129 
130 #endif
131 #endif
132 
133 
virtual const DtEntityIdentifier & senderId() const
Definition: createEntityInteractionHLA.h:99
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
virtual void setRequestId(int id)
Set/Get request ID.
Definition: createEntityInteractionHLA.h:115
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
DtInteractionWithEncDec & operator=(const DtInteractionWithEncDec &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
int myRequestId
Definition: createEntityInteractionHLA.h:91
virtual void setSenderId(const DtEntityIdentifier &id)
Set/Get sender ID.
Definition: createEntityInteractionHLA.h:94
DtEntityIdentifier myOrigEnt
Definition: createEntityInteractionHLA.h:89
static void removeCallback(DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
Instances of DtCreateEntityInteraction are used to represent CreateEntity Interactions in the RPR FOM...
Definition: createEntityInteractionHLA.h:35
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
DtEntityIdentifier myReceiveEnt
Definition: createEntityInteractionHLA.h:90
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...
virtual int requestId() const
Definition: createEntityInteractionHLA.h:120
void(* DtCreateEntityInteractionCb)(DtCreateEntityInteraction *inter, void *usr)
CreateEntity interaction callback function signature.
Definition: createEntityInteractionHLA.h:27
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
virtual const char * name() const
Name of the interaction. (Not necessarily the ClassName from the FOM.)
Definition: createEntityInteractionHLA.h:125
This file provides a declaration of the class DtInteractionWithEncDec.
virtual void setReceiverId(const DtEntityIdentifier &id)
Set/Get receiver ID.
Definition: createEntityInteractionHLA.h:104
class DtInteractionWithEncDec:
Definition: interactionWithEncDec.h:44
virtual const DtEntityIdentifier & receiverId() const
Definition: createEntityInteractionHLA.h:110

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)