VR-Link API Documentation for HLA 1516
 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 
39 {
40 public:
41 
44 
46  virtual ~DtEventReportInteraction();
47 
50 
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 
96 };
97 
98 #endif
99 #endif
100 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
DtEntityIdentifier myReceiveEnt
Definition: eventReportInteractionHLA.h:94
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
class DtInteractionWithData:
Definition: interactionWithData.h:29
class DtEventReportInteraction:
Definition: eventReportInteractionHLA.h:38
DtEntityIdentifier myOrigEnt
Definition: eventReportInteractionHLA.h:93
This file provides a declaration of the class DtInteractionWithData.
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region1516.h:29
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.
DtEventType myEventType
Definition: eventReportInteractionHLA.h:95
DtInteractionWithData & operator=(const DtInteractionWithData &orig)
assignment operator
void(* DtEventReportInteractionCb)(DtEventReportInteraction *inter, void *usr)
EventReport interaction callback function signature.
Definition: eventReportInteractionHLA.h:29
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
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
DtEventType
Definition: disEnums.h:483
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
virtual void printDataToStream(std::ostream &stream) const
Print the interaction&#39;s data to the specified stream.

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)