VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actionResponseInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef actionResponseInteractionHLA_H_
8 #define actionResponseInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithData.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
20 
23 
24 
26 typedef void (*DtActionResponseInteractionCb)
27  (DtActionResponseInteraction* inter, void* usr);
28 
35 
36 class DT_DLL_VL DtActionResponseInteraction : public DtInteractionWithData
37 {
38 public:
39 
42 
44  virtual ~DtActionResponseInteraction();
45 
48 
50  DtActionResponseInteraction& operator=(
51  const DtActionResponseInteraction& orig);
52 
54  virtual void printData() const;
55 
57  virtual void printDataToStream(std::ostream& stream) const;
58 
60  virtual void setSenderId(const DtEntityIdentifier& id);
61  virtual const DtEntityIdentifier& senderId() const;
62 
64  virtual void setReceiverId(const DtEntityIdentifier& id);
65  virtual const DtEntityIdentifier& receiverId() const;
66 
68  virtual void setRequestId(DtU32 id);
69  virtual DtU32 requestId() const;
70 
72  virtual void setRequestStatus(DtRequestStatus rStatus);
73  virtual DtRequestStatus requestStatus() const;
74 
76  virtual const char* name() const;
77 
78 public:
79 
82  static DtInteraction* create();
83 
86  static void addCallback(DtExerciseConn* conn,
87  DtActionResponseInteractionCb cb, void* usr,
88  DtDDMRegionSP region = DtDDMRegionSP());
89  static void removeCallback(DtExerciseConn* conn,
90  DtActionResponseInteractionCb cb, void* usr, DtDDMRegionSP region =
91  DtDDMRegionSP());
92 
93 protected:
94 
95  DtEntityIdentifier myOrigEnt;
96  DtEntityIdentifier myReceiveEnt;
97  DtU32 myRequestId;
98  DtRequestStatus myRequestStatus;
99 };
100 
101 #endif
102 #endif
103 
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtActionResponsePdu DtActionResponseInteraction
Definition: actionRequestPdu.h:84
This file defines math constants and methods which may be useful in simulations.
DtRequestStatus
Definition: disEnums.h:465
void(* DtActionResponseInteractionCb)(DtActionResponsePdu *pdu, void *usr)
DtActionResponsePdu callback function signature.
Definition: actionRequestPdu.h:88
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
Instances of DtActionResponsePdu are used to send/receive action response PDUs.
Definition: actionRequestPdu.h:93
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)