VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actionRequestInteractionHLA.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 actionRequestInteractionHLA_H_
8 #define actionRequestInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithData.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
26 typedef void (*DtActionRequestInteractionCb)
27  (DtActionRequestInteraction* inter, void* usr);
28 
29 
36 {
37 public:
38 
41 
43  virtual ~DtActionRequestInteraction();
44 
47 
50  const DtActionRequestInteraction& orig);
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 void setActionId(DtActionId id);
72  virtual DtActionId actionId() const;
73 
75  virtual const char* name() const;
76 
77 public:
78 
81  static DtInteraction* create();
82 
85  static void addCallback(DtExerciseConn* conn,
86  DtActionRequestInteractionCb cb, void* usr, DtDDMRegionSP region =
87  DtDDMRegionSP());
88  static void removeCallback(DtExerciseConn* conn,
89  DtActionRequestInteractionCb cb, void* usr, DtDDMRegionSP region =
90  DtDDMRegionSP());
91 
92 protected:
93 
98 };
99 
100 #endif
101 #endif
102 
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
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void(* DtActionRequestInteractionCb)(DtActionRequestInteraction *inter, void *usr)
ActionRequest interaction callback function signature.
Definition: actionRequestInteractionHLA.h:27
Instances of DtActionRequestInteraction are used to represent ActionRequest Interactions in the RPR F...
Definition: actionRequestInteractionHLA.h:35
class DtInteractionWithData:
Definition: interactionWithData.h:29
This file provides a declaration of the class DtInteractionWithData.
DtEntityIdentifier myReceiveEnt
Definition: actionRequestInteractionHLA.h:95
virtual void printData() const
Print the interaction&#39;s data to DtInfo.
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.
DtEntityIdentifier myOrigEnt
Definition: actionRequestInteractionHLA.h:94
DtInteractionWithData & operator=(const DtInteractionWithData &orig)
assignment operator
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
DtActionId
Definition: disEnums.h:412
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
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
int myRequestId
Definition: actionRequestInteractionHLA.h:96
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the specified stream.
DtActionId myActionId
Definition: actionRequestInteractionHLA.h:97

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)