VR-Link API Documentation for HLA 1.3
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
acknowledgeInteractionHLA.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
9
10
#ifndef acknowledgeInteractionHLA_H_
11
#define acknowledgeInteractionHLA_H_
12
13
#if DtHLA
14
15
#include "
interactionWithEncDec.h
"
16
#include "
hostStructs.h
"
17
#include <
matrix/vlMath.h
>
18
19
20
21
class
DT_DLL_VL
DtExerciseConn
;
22
class
DT_DLL_VL
DtAcknowledgeInteraction
;
23
24
25
27
typedef
void (*
DtAcknowledgeInteractionCb
) (
DtAcknowledgeInteraction
* inter,
28
void
* usr);
29
30
34
class
DT_DLL_VL
DtAcknowledgeInteraction
:
public
DtInteractionWithEncDec
35
{
36
public
:
37
39
DtAcknowledgeInteraction
();
40
42
virtual
~
DtAcknowledgeInteraction
();
43
45
DtAcknowledgeInteraction
(
const
DtAcknowledgeInteraction
& orig);
46
48
DtAcknowledgeInteraction
&
operator=
(
const
DtAcknowledgeInteraction
& orig);
49
51
virtual
void
printData
()
const
;
52
54
virtual
void
printDataToStream
(std::ostream& stream)
const
;
55
57
virtual
void
setSenderId(
const
DtEntityIdentifier
&
id
);
58
virtual
const
DtEntityIdentifier
& senderId()
const
;
59
61
virtual
void
setReceiverId(
const
DtEntityIdentifier
&
id
);
62
virtual
const
DtEntityIdentifier
& receiverId()
const
;
63
65
virtual
void
setAcknowledgeFlag(
DtAcknowledgeFlag
flag);
66
virtual
DtAcknowledgeFlag
acknowledgeFlag()
const
;
67
69
virtual
void
setResponseFlag(
DtResponseFlag
flag);
70
virtual
DtResponseFlag
responseFlag()
const
;
71
73
virtual
void
setRequestId(
int
id
);
74
virtual
int
requestId()
const
;
75
77
virtual
const
char
*
name
()
const
;
78
79
public
:
80
83
static
DtInteraction
* create();
84
87
static
void
addCallback
(
DtExerciseConn
* conn,
88
DtAcknowledgeInteractionCb
cb,
void
* usr,
DtDDMRegionSP
region =
89
DtDDMRegionSP
());
90
static
void
removeCallback
(
DtExerciseConn
* conn,
91
DtAcknowledgeInteractionCb
cb,
void
* usr,
DtDDMRegionSP
region =
92
DtDDMRegionSP
());
93
94
protected
:
95
96
DtEntityIdentifier
myOrigEnt
;
97
DtEntityIdentifier
myReceiveEnt
;
98
int
myRequestId
;
99
DtAcknowledgeFlag
myAckFlag
;
100
DtResponseFlag
myRespFlag
;
101
};
102
103
#endif
104
#endif
105
Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)