VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
createEntityInteractionHLA.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 createEntityInteractionHLA_H_
8 #define createEntityInteractionHLA_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  DtCreateEntityInteraction* inter, void* usr);
29 
30 
31 
36 {
37 public:
38 
41 
43  virtual ~DtCreateEntityInteraction();
44 
47 
50 
52  virtual void printData() const;
53 
55  virtual void printDataToStream(std::ostream& stream) const;
56 
58  virtual void setSenderId(const DtEntityIdentifier& id);
59  virtual const DtEntityIdentifier& senderId() const;
60 
62  virtual void setReceiverId(const DtEntityIdentifier& id);
63  virtual const DtEntityIdentifier& receiverId() const;
64 
66  virtual void setRequestId(int id);
67  virtual int requestId() const;
68 
70  virtual const char* name() const;
71 
72 public:
73 
76  static DtInteraction* create();
77 
80  static void addCallback(DtExerciseConn* conn,
81  DtCreateEntityInteractionCb cb, void* usr,
82  DtDDMRegionSP region = DtDDMRegionSP());
83  static void removeCallback(DtExerciseConn* conn,
84  DtCreateEntityInteractionCb cb, void* usr,
85  DtDDMRegionSP region = DtDDMRegionSP());
86 
87 protected:
88 
92 };
93 
95 {
96  myOrigEnt = id;
97 }
98 
100 {
101  return myOrigEnt;
102 }
103 
105  const DtEntityIdentifier& id)
106 {
107  myReceiveEnt = id;
108 }
109 
111 {
112  return myReceiveEnt;
113 }
114 
116 {
117  myRequestId = id;
118 }
119 
121 {
122  return myRequestId;
123 }
124 
125 inline const char* DtCreateEntityInteraction::name() const
126 {
127  return "DtCreateEntityInteraction";
128 }
129 
130 #endif
131 #endif
132 
133 

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)