VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
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
22
class
DT_DLL_VL
DtRemoveEntityInteraction
;
23
class
DT_DLL_VL
DtExerciseConn
;
24
25
27
typedef
void (*
DtRemoveEntityInteractionCb
)(
DtRemoveEntityInteraction
* inter,
28
void
* usr);
29
34
35
36
class
DT_DLL_VL
DtRemoveEntityInteraction
:
public
DtInteractionWithEncDec
37
{
38
public
:
39
41
DtRemoveEntityInteraction
();
42
44
virtual
~
DtRemoveEntityInteraction
();
45
47
DtRemoveEntityInteraction
(
const
DtRemoveEntityInteraction
& orig);
48
50
DtRemoveEntityInteraction
&
operator=
(
const
DtRemoveEntityInteraction
& orig);
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
90
DtEntityIdentifier
myOrigEnt
;
91
DtEntityIdentifier
myReceiveEnt
;
92
int
myRequestId
;
93
};
94
95
inline
void
DtRemoveEntityInteraction::setSenderId
(
const
DtEntityIdentifier
&
id
)
96
{
97
myOrigEnt
= id;
98
}
99
100
inline
const
DtEntityIdentifier
&
DtRemoveEntityInteraction::senderId
()
const
101
{
102
return
myOrigEnt
;
103
}
104
105
inline
void
DtRemoveEntityInteraction::setReceiverId
(
106
const
DtEntityIdentifier
&
id
)
107
{
108
myReceiveEnt
= id;
109
}
110
111
inline
const
DtEntityIdentifier
&
DtRemoveEntityInteraction::receiverId
()
const
112
{
113
return
myReceiveEnt
;
114
}
115
116
inline
void
DtRemoveEntityInteraction::setRequestId
(
int
id
)
117
{
118
myRequestId
= id;
119
}
120
121
inline
int
DtRemoveEntityInteraction::requestId
()
const
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 Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)