VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
tAckInter.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 tAckInter_H_
8
#define tAckInter_H_
9
10
#if DtTENA
11
12
#include "
tInteraction.h
"
13
#include <
vlpi/entityIdentifier.h
>
14
#include <
vlpi/disEnums.h
>
15
19
20
class
DT_DLL_VL
DtAcknowledgeInteraction
;
21
23
typedef
void (*
DtAcknowledgeInteractionCb
)(
DtAcknowledgeInteraction
* inter,
void
* usr);
24
25
29
class
DT_DLL_VL
DtAcknowledgeInteraction
:
public
DtInteraction
30
{
31
public
:
33
DtAcknowledgeInteraction
();
34
36
virtual
~
DtAcknowledgeInteraction
();
37
39
DtAcknowledgeInteraction
(
const
DtAcknowledgeInteraction
& orig);
40
42
DtAcknowledgeInteraction
&
operator=
(
const
DtAcknowledgeInteraction
& orig);
43
45
virtual
void
setSenderId(
const
DtEntityIdentifier
&
id
);
46
48
virtual
const
DtEntityIdentifier
& senderId()
const
;
49
51
virtual
void
setReceiverId(
const
DtEntityIdentifier
&
id
);
52
54
virtual
const
DtEntityIdentifier
& receiverId()
const
;
55
57
virtual
void
setAcknowledgeFlag(
DtAcknowledgeFlag
flag);
58
60
virtual
DtAcknowledgeFlag
acknowledgeFlag()
const
;
61
63
virtual
void
setResponseFlag(
DtResponseFlag
flag);
64
66
virtual
DtResponseFlag
responseFlag()
const
;
67
69
virtual
void
setRequestId(
int
id
);
70
72
virtual
int
requestId()
const
;
73
75
virtual
const
char
*
name
()
const
;
76
78
virtual
void
printData
()
const
;
79
81
virtual
void
printDataToStream
(std::ostream& stream)
const
;
82
83
public
:
84
87
static
DtInteraction
* create();
88
90
static
void
addCallback
(
DtExerciseConn
* conn,
91
DtAcknowledgeInteractionCb
cb,
void
* usr);
92
94
static
void
removeCallback
(
DtExerciseConn
* conn,
95
DtAcknowledgeInteractionCb
cb,
void
* usr);
96
97
98
protected
:
99
DtEntityIdentifier
myOrigEnt;
100
DtEntityIdentifier
myReceiveEnt;
101
int
myRequestId;
102
DtAcknowledgeFlag
myAckFlag;
103
DtResponseFlag
myRespFlag;
104
};
105
106
#endif
107
#endif
108
109
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
)