VR-Link API Documentation for HLA 1516
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
startResumeInteractionHLA.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 startResumeInteractionHLA_H_
8
#define startResumeInteractionHLA_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
DtExerciseConn
;
23
class
DT_DLL_VL
DtStartResumeInteraction
;
24
25
27
typedef
void (*
DtStartResumeInteractionCb
) (
DtStartResumeInteraction
* inter,
28
void
* usr);
29
30
35
36
class
DT_DLL_VL
DtStartResumeInteraction
:
public
DtInteractionWithEncDec
37
{
38
public
:
39
41
DtStartResumeInteraction
();
42
44
virtual
~
DtStartResumeInteraction
();
45
47
DtStartResumeInteraction
(
const
DtStartResumeInteraction
& orig);
48
50
DtStartResumeInteraction
&
operator=
(
const
DtStartResumeInteraction
& 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
setRealWorldTime(
const
DtTime
time);
68
virtual
DtTime
realWorldTime()
const
;
69
72
DtTimeStampType
realWorldTimeType()
const
;
73
void
setRealWorldTimeType(
const
DtTimeStampType
type);
74
76
virtual
void
setSimulationTime(
const
DtTime
time);
77
virtual
DtTime
simulationTime()
const
;
78
81
DtTimeStampType
simulationTimeType()
const
;
82
void
setSimulationTimeType(
const
DtTimeStampType
type);
83
85
virtual
void
setRequestId(
int
id
);
86
virtual
int
requestId()
const
;
87
89
virtual
const
char
*
name
()
const
;
90
91
public
:
92
95
static
DtInteraction
* create();
96
99
static
void
addCallback
(
DtExerciseConn
* conn,
100
DtStartResumeInteractionCb
cb,
void
* usr,
101
DtDDMRegionSP
region =
DtDDMRegionSP
());
102
static
void
removeCallback
(
DtExerciseConn
* conn,
103
DtStartResumeInteractionCb
cb,
void
* usr,
104
DtDDMRegionSP
region =
DtDDMRegionSP
());
105
106
protected
:
107
108
DtEntityIdentifier
myOrigEnt
;
109
DtEntityIdentifier
myReceiveEnt
;
110
int
myRequestId
;
111
DtTime
myRealTime
;
112
DtTimeStampType
myRealTimeType
;
113
DtTime
mySimTime
;
114
DtTimeStampType
mySimTimeType
;
115
};
116
117
#endif
118
#endif
119
Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)