VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
tActRespInter.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 tActRespInter_H_
8
#define tActRespInter_H_
9
10
#if DtTENA
11
12
#include "
tInterWData.h
"
13
#include <
vlpi/entityIdentifier.h
>
14
#include "
globalObjDes.h
"
15
19
20
class
DtActionResponseInteraction
;
21
23
typedef
void (*
DtActionResponseInteractionCb
)
24
(
DtActionResponseInteraction
* inter,
void
* usr);
25
26
32
class
DT_DLL_VL
DtActionResponseInteraction
:
public
DtInteractionWithData
33
{
34
public
:
36
DtActionResponseInteraction
();
37
39
virtual
~
DtActionResponseInteraction
();
40
42
DtActionResponseInteraction
(
const
DtActionResponseInteraction
& orig);
43
45
DtActionResponseInteraction
&
operator=
(
46
const
DtActionResponseInteraction
& orig);
47
49
virtual
void
setSenderId(
const
DtEntityIdentifier
&
id
);
50
52
virtual
const
DtEntityIdentifier
& senderId()
const
;
53
55
virtual
void
setReceiverId(
const
DtEntityIdentifier
&
id
);
56
58
virtual
const
DtEntityIdentifier
& receiverId()
const
;
59
61
virtual
void
setRequestId(
unsigned
long
id
);
62
64
virtual
unsigned
long
requestId()
const
;
65
67
virtual
void
setRequestStatus(
DtRequestStatus
status);
68
70
virtual
DtRequestStatus
requestStatus()
const
;
71
73
virtual
const
char
*
name
()
const
;
74
76
virtual
void
printData
()
const
;
77
79
virtual
void
printDataToStream
(std::ostream& stream)
const
;
80
81
public
:
82
85
static
DtInteraction
* create();
86
89
static
void
addCallback
(
DtExerciseConn
* conn,
90
DtActionResponseInteractionCb
cb,
void
* usr);
91
94
static
void
removeCallback
(
DtExerciseConn
* conn,
95
DtActionResponseInteractionCb
cb,
void
* usr);
96
97
98
protected
:
99
DtEntityIdentifier
myOrigEnt;
100
DtEntityIdentifier
myReceiveEnt;
101
int
myRequestId;
102
DtRequestStatus
myRequestStatus;
103
};
104
105
#endif
106
#endif
107
108
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
)