VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eventReportInteractionHLA.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 eventReportInteractionHLA_H_
8 #define eventReportInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithData.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
26 
28 typedef void (*DtEventReportInteractionCb)
29  (DtEventReportInteraction* inter, void* usr);
30 
37 
38 class DT_DLL_VL DtEventReportInteraction : public DtInteractionWithData
39 {
40 public:
41 
44 
46  virtual ~DtEventReportInteraction();
47 
50 
52  DtEventReportInteraction& operator=(
53  const DtEventReportInteraction& orig);
54 
56  virtual void printData() const;
57 
59  virtual void printDataToStream(std::ostream& stream) const;
60 
62  virtual void setSenderId(const DtEntityIdentifier& id);
63  virtual const DtEntityIdentifier& senderId() const;
64 
66  virtual void setReceiverId(const DtEntityIdentifier& id);
67  virtual const DtEntityIdentifier& receiverId() const;
68 
70  virtual void setEventType(DtEventType type);
71  virtual DtEventType eventType() const;
72 
74  virtual const char* name() const;
75 
76 public:
77 
80  static DtInteraction* create();
81 
84  static void addCallback(DtExerciseConn* conn,
85  DtEventReportInteractionCb cb, void* usr,
86  DtDDMRegionSP region = DtDDMRegionSP());
87  static void removeCallback(DtExerciseConn* conn,
88  DtEventReportInteractionCb cb, void* usr,
89  DtDDMRegionSP region = DtDDMRegionSP());
90 
91 protected:
92 
93  DtEntityIdentifier myOrigEnt;
94  DtEntityIdentifier myReceiveEnt;
95  DtEventType myEventType;
96 };
97 
98 #endif
99 #endif
100 
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
DtEventReportPdu DtEventReportInteraction
Definition: eventReportPdu.h:19
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
This file defines math constants and methods which may be useful in simulations.
Instances of DtEventReptPdu are used to send/receive event report PDUs.
Definition: eventReportPdu.h:28
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtEventType
Definition: disEnums.h:483
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)