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
52
DtStopReason
reason()
const
;
53
void
setReason(
DtStopReason
reason);
54
56
int
frozenBehavior()
const
;
57
void
setFrozenBehavior(
int
behavior);
58
60
int
requestId()
const
;
61
void
setRequestId(
int
id
);
62
64
virtual
void
printData
()
const
;
65
67
virtual
void
printDataToStream
(std::ostream& stream)
const
;
68
69
public
:
72
static
DtPdu
*create(
const
DtNetPacket
*initial,
73
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
74
77
static
void
addCallback(
DtExerciseConn
*conn,
78
DtStopFreezePduCb
cb,
void
*usr);
79
static
void
removeCallback(
DtExerciseConn
*conn,
80
DtStopFreezePduCb
cb,
void
*usr);
81
82
protected
:
84
DtPduKind
internalGetPduKind
()
const
{
return
DtStopFreezePduKind
;}
85
86
};
87
88
#endif
Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)