VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
removeEntityInteractionHLA.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 removeEntityInteractionHLA_H_
8 #define removeEntityInteractionHLA_H_
9 
10 #if DtHLA
11 
12 #include "interactionWithEncDec.h"
13 #include "hostStructs.h"
14 #include <matrix/vlMath.h>
15 
16 
17 
21 
24 
25 
28  void* usr);
29 
34 
35 
37 {
38 public:
39 
42 
44  virtual ~DtRemoveEntityInteraction();
45 
48 
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 const char* name() const;
72 
73 public:
74 
77  static DtInteraction* create();
78 
81  static void addCallback(DtExerciseConn* conn,
82  DtRemoveEntityInteractionCb cb, void* usr,
83  DtDDMRegionSP region = DtDDMRegionSP());
84  static void removeCallback(DtExerciseConn* conn,
85  DtRemoveEntityInteractionCb cb, void* usr,
86  DtDDMRegionSP region = DtDDMRegionSP());
87 
88 protected:
89 
93 };
94 
96 {
97  myOrigEnt = id;
98 }
99 
101 {
102  return myOrigEnt;
103 }
104 
106  const DtEntityIdentifier& id)
107 {
108  myReceiveEnt = id;
109 }
110 
112 {
113  return myReceiveEnt;
114 }
115 
117 {
118  myRequestId = id;
119 }
120 
122 {
123  return myRequestId;
124 }
125 
126 inline const char* DtRemoveEntityInteraction::name() const
127 {
128  return "DtRemoveEntityInteraction";
129 }
130 
131 #endif
132 #endif
133 
134 

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)