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
actionResponseInteractionHLA.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 actionResponseInteractionHLA_H_
8
#define actionResponseInteractionHLA_H_
9
10
#if DtHLA
11
12
#include "
interactionWithData.h
"
13
#include "
hostStructs.h
"
14
#include <
matrix/vlMath.h
>
15
16
20
21
class
DT_DLL_VL
DtExerciseConn
;
22
class
DT_DLL_VL
DtActionResponseInteraction
;
23
24
26
typedef
void (*
DtActionResponseInteractionCb
)
27
(
DtActionResponseInteraction
* inter,
void
* usr);
28
35
36
class
DT_DLL_VL
DtActionResponseInteraction
:
public
DtInteractionWithData
37
{
38
public
:
39
41
DtActionResponseInteraction
();
42
44
virtual
~
DtActionResponseInteraction
();
45
47
DtActionResponseInteraction
(
const
DtActionResponseInteraction
& orig);
48
50
DtActionResponseInteraction
& operator=(
51
const
DtActionResponseInteraction
& orig);
52
54
virtual
void
printData()
const
;
55
57
virtual
void
printDataToStream(std::ostream& stream)
const
;
58
60
virtual
void
setSenderId(
const
DtEntityIdentifier
&
id
);
61
virtual
const
DtEntityIdentifier
& senderId()
const
;
62
64
virtual
void
setReceiverId(
const
DtEntityIdentifier
&
id
);
65
virtual
const
DtEntityIdentifier
& receiverId()
const
;
66
68
virtual
void
setRequestId(
DtU32
id
);
69
virtual
DtU32
requestId()
const
;
70
72
virtual
void
setRequestStatus(
DtRequestStatus
rStatus);
73
virtual
DtRequestStatus
requestStatus()
const
;
74
76
virtual
const
char
* name()
const
;
77
78
public
:
79
82
static
DtInteraction
* create();
83
86
static
void
addCallback(
DtExerciseConn
* conn,
87
DtActionResponseInteractionCb
cb,
void
* usr,
88
DtDDMRegionSP region = DtDDMRegionSP());
89
static
void
removeCallback(
DtExerciseConn
* conn,
90
DtActionResponseInteractionCb
cb,
void
* usr, DtDDMRegionSP region =
91
DtDDMRegionSP());
92
93
protected
:
94
95
DtEntityIdentifier
myOrigEnt;
96
DtEntityIdentifier
myReceiveEnt;
97
DtU32
myRequestId;
98
DtRequestStatus
myRequestStatus;
99
};
100
101
#endif
102
#endif
103
Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)