VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
setDataInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef setDataInteractionHLA_H_
8 #define setDataInteractionHLA_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 (*DtSetDataInteractionCb)
29  (DtSetDataInteraction* inter, void* usr);
30 
37 {
38 public:
39 
42 
44  virtual ~DtSetDataInteraction();
45 
48 
51  const DtSetDataInteraction& 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(unsigned long id);
69  virtual unsigned long requestId() const;
70 
72  virtual const char* name() const;
73 
74 public:
75 
78  static DtInteraction* create();
79 
82  static void addCallback(DtExerciseConn* conn,
83  DtSetDataInteractionCb cb, void* usr,
84  DtDDMRegionSP region = DtDDMRegionSP());
85  static void removeCallback(DtExerciseConn* conn,
86  DtSetDataInteractionCb cb, void* usr,
87  DtDDMRegionSP region = DtDDMRegionSP());
88 
89 protected:
90 
93  unsigned long myRequestId;
94 };
95 
96 #endif
97 #endif
98 
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:60
DtEntityIdentifier myOrigEnt
Definition: setDataInteractionHLA.h:91
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
class DtInteractionWithData:
Definition: interactionWithData.h:29
This file provides a declaration of the class DtInteractionWithData.
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.
void(* DtSetDataInteractionCb)(DtSetDataInteraction *inter, void *usr)
SetData interaction callback function signature.
Definition: setDataInteractionHLA.h:29
DtInteractionWithData & operator=(const DtInteractionWithData &orig)
assignment operator
Instances of DtSetDataInteraction are used to represent SetData Interactions in the RPR FOM...
Definition: setDataInteractionHLA.h:36
virtual const char * name() const =0
Name of the interaction. (Not necessarily the ClassName from the FOM.)
unsigned long myRequestId
Definition: setDataInteractionHLA.h:93
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...
DtEntityIdentifier myReceiveEnt
Definition: setDataInteractionHLA.h:92
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
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 Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)