VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
stopFreezePdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2013 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#if DtDIS
12
13
#include <
vlpi/disEnums.h
>
14
#include "
hostStructs.h
"
15
#include "
simanPdu.h
"
16
17
class
DT_DLL_VL
DtExerciseConn
;
18
class
DT_DLL_VL
DtStopFreezePdu
;
19
typedef
DtStopFreezePdu
DtStopFreezeInteraction
;
20
22
typedef
void (*
DtStopFreezePduCb
)(
DtStopFreezePdu
*pdu,
void
*usr);
23
27
class
DT_DLL_VL
DtStopFreezePdu
:
public
DtSimanPdu
28
{
29
public
:
30
31
enum
{ PduStaticSize=40 };
32
33
public
:
35
DtStopFreezePdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
36
DtStopFreezePdu
(
const
DtNetStopFreezePdu
*initial,
37
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
38
39
DtStopFreezePdu
(
const
DtEntityIdentifier
&to,
40
const
DtEntityIdentifier
&from,
41
const
DtTime
realTime,
42
DtStopReason
reason,
43
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
44
45
46
48
DtTime
realWorldTime()
const
;
49
void
setRealWorldTime(
const
DtTime
time);
50
53
DtTimeStampType
realWorldTimeType()
const
;
54
void
setRealWorldTimeType(
const
DtTimeStampType
type);
55
57
DtStopReason
reason()
const
;
58
void
setReason(
DtStopReason
reason);
59
60
62
int
requestId()
const
;
63
void
setRequestId(
int
id
);
64
66
int
frozenBehavior()
const
;
67
void
setFrozenBehavior(
int
behavior);
68
72
virtual
bool
reflectWhenFrozen()
const
;
73
virtual
void
setReflectWhenFrozen(
bool
flag);
74
78
virtual
bool
runClockWhenFrozen()
const
;
79
virtual
void
setRunClockWhenFrozen(
bool
flag);
80
84
virtual
bool
updateWhenFrozen()
const
;
85
virtual
void
setUpdateWhenFrozen(
bool
flag);
86
88
virtual
void
printData
()
const
;
89
91
virtual
void
printDataToStream
(std::ostream& stream)
const
;
92
93
public
:
96
static
DtPdu
*create(
const
DtNetPacket
*initial,
97
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
98
101
static
void
addCallback(
DtExerciseConn
*conn,
102
DtStopFreezePduCb
cb,
void
*usr);
103
static
void
removeCallback(
DtExerciseConn
*conn,
104
DtStopFreezePduCb
cb,
void
*usr);
105
106
protected
:
108
DtPduKind
internalGetPduKind
()
const
{
return
DtStopFreezePduKind
;}
109
110
};
111
112
#endif
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)