VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
hActReqInter.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 hActReqInter_H_
8
#define hActReqInter_H_
9
10
#if DtHLA
11
12
#include "
hInterWData.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
DtActionRequestInteraction
;
24
26
typedef
void (*
DtActionRequestInteractionCb
)
27
(
DtActionRequestInteraction
* inter,
void
* usr);
28
29
35
class
DT_DLL_VL
DtActionRequestInteraction
:
public
DtInteractionWithData
36
{
37
public
:
38
40
DtActionRequestInteraction
();
41
43
virtual
~
DtActionRequestInteraction
();
44
46
DtActionRequestInteraction
(
const
DtActionRequestInteraction
& orig);
47
49
DtActionRequestInteraction
&
operator=
(
50
const
DtActionRequestInteraction
& 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
setRequestId(
int
id
);
68
virtual
int
requestId()
const
;
69
71
virtual
void
setActionId(
DtActionId
id
);
72
virtual
DtActionId
actionId()
const
;
73
75
virtual
const
char
*
name
()
const
;
76
77
public
:
78
81
static
DtInteraction
* create();
82
85
static
void
addCallback
(
DtExerciseConn
* conn,
86
DtActionRequestInteractionCb
cb,
void
* usr,
DtDDMRegionSP
region =
87
DtDDMRegionSP
());
88
static
void
removeCallback
(
DtExerciseConn
* conn,
89
DtActionRequestInteractionCb
cb,
void
* usr,
DtDDMRegionSP
region =
90
DtDDMRegionSP
());
91
92
protected
:
93
94
DtEntityIdentifier
myOrigEnt
;
95
DtEntityIdentifier
myReceiveEnt
;
96
int
myRequestId
;
97
DtActionId
myActionId
;
98
};
99
100
#endif
101
#endif
102
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
)