VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
tStopInter.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 tStopInter_H_
8
#define tStopInter_H_
9
10
#if DtTENA
11
12
#include "
tInteraction.h
"
13
#include <
vlpi/entityIdentifier.h
>
14
#include <
vlutil/vlTime.h
>
15
19
20
class
DT_DLL_VL
DtStopFreezeInteraction
;
21
23
typedef
void (*
DtStopFreezeInteractionCb
)(
DtStopFreezeInteraction
* inter,
void
* usr);
24
25
26
30
class
DT_DLL_VL
DtStopFreezeInteraction
:
public
DtInteraction
31
{
32
public
:
34
DtStopFreezeInteraction
();
35
37
virtual
~
DtStopFreezeInteraction
();
38
40
DtStopFreezeInteraction
(
const
DtStopFreezeInteraction
& orig);
41
43
DtStopFreezeInteraction
&
operator=
(
const
DtStopFreezeInteraction
& orig);
44
46
virtual
void
setSenderId(
const
DtEntityIdentifier
&
id
);
47
49
virtual
const
DtEntityIdentifier
& senderId()
const
;
50
52
virtual
void
setReceiverId(
const
DtEntityIdentifier
&
id
);
53
55
virtual
const
DtEntityIdentifier
& receiverId()
const
;
56
58
virtual
void
setRealWorldTime(
const
DtTime
time);
59
61
virtual
DtTime
realWorldTime()
const
;
62
64
virtual
void
setRequestId(
int
id
);
65
67
virtual
int
requestId()
const
;
68
70
virtual
DtStopReason
reason()
const
;
71
73
virtual
void
setReason(
DtStopReason
reason);
74
76
virtual
bool
reflectWhenFrozen()
const
;
77
79
virtual
void
setReflectWhenFrozen(
bool
flag);
80
82
virtual
bool
runClockWhenFrozen()
const
;
83
85
virtual
void
setRunClockWhenFrozen(
bool
flag);
86
88
virtual
bool
updateWhenFrozen()
const
;
89
91
virtual
void
setUpdateWhenFrozen(
bool
flag);
92
94
virtual
const
char
*
name
()
const
;
95
97
virtual
void
printData
()
const
;
98
100
virtual
void
printDataToStream
(std::ostream& stream)
const
;
101
102
public
:
103
106
static
DtInteraction
* create();
107
110
static
void
addCallback
(
DtExerciseConn
* conn,
111
DtStopFreezeInteractionCb
cb,
void
* usr);
112
115
static
void
removeCallback
(
DtExerciseConn
* conn,
116
DtStopFreezeInteractionCb
cb,
void
* usr);
117
118
119
protected
:
120
DtEntityIdentifier
myOrigEnt;
121
DtEntityIdentifier
myReceiveEnt;
122
int
myRequestId;
123
DtStopReason
myReason;
124
DtTime
myRealTime;
125
bool
myReflect;
126
bool
myUpdate;
127
bool
myRunClock;
128
};
129
130
#endif
131
#endif
132
133
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)