VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
hRepRespInter.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 hRepRespInter_H_
8
#define hRepRespInter_H_
9
10
#if DtHLA
11
12
#include "
hIntWEncDec.h
"
13
#include "
hostStructs.h
"
14
#include <
matrix/vlMath.h
>
15
16
17
21
22
class
DT_DLL_VL
DtRepairResponseInteraction
;
23
class
DT_DLL_VL
DtExerciseConn
;
24
25
27
typedef
void (*
DtRepairResponseInteractionCb
)
28
(
DtRepairResponseInteraction
* inter,
void
* usr);
29
34
35
36
class
DT_DLL_VL
DtRepairResponseInteraction
:
public
DtInteractionWithEncDec
37
{
38
public
:
39
41
DtRepairResponseInteraction
();
42
44
virtual
~
DtRepairResponseInteraction
();
45
47
DtRepairResponseInteraction
(
const
DtRepairResponseInteraction
& orig);
48
50
DtRepairResponseInteraction
&
operator=
(
51
const
DtRepairResponseInteraction
& orig);
52
54
virtual
void
printData
()
const
;
55
57
virtual
void
printDataToStream
(std::ostream& stream)
const
;
58
60
virtual
void
setReceivingId(
const
DtGlobalObjectDesignator
&
id
);
61
virtual
const
DtGlobalObjectDesignator
&receivingId()
const
;
62
64
virtual
void
setRepairingId(
const
DtGlobalObjectDesignator
&
id
);
65
virtual
const
DtGlobalObjectDesignator
&repairingId()
const
;
66
68
virtual
void
setRepairResult(
DtRepairResult
result);
69
virtual
DtRepairResult
repairResult()
const
;
70
72
virtual
const
char
*
name
()
const
;
73
74
public
:
75
78
static
DtInteraction
* create();
79
82
static
void
addCallback
(
DtExerciseConn
* conn,
83
DtRepairResponseInteractionCb
cb,
void
* usr,
84
DtDDMRegionSP
region =
DtDDMRegionSP
());
85
static
void
removeCallback
(
DtExerciseConn
* conn,
86
DtRepairResponseInteractionCb
cb,
void
* usr,
87
DtDDMRegionSP
region =
DtDDMRegionSP
());
88
89
protected
:
90
91
DtGlobalObjectDesignator
myReceivingObject
;
92
DtGlobalObjectDesignator
myRepairingObject
;
93
DtRepairResult
myRepairResult
;
94
};
95
96
inline
const
DtGlobalObjectDesignator
&
DtRepairResponseInteraction::
97
receivingId
()
const
98
{
99
return
myReceivingObject
;
100
}
101
102
inline
const
DtGlobalObjectDesignator
&
DtRepairResponseInteraction::
103
repairingId
()
const
104
{
105
return
myRepairingObject
;
106
}
107
108
inline
DtRepairResult
DtRepairResponseInteraction::repairResult
()
const
109
{
110
return
myRepairResult
;
111
}
112
113
inline
void
DtRepairResponseInteraction::setReceivingId
(
114
const
DtGlobalObjectDesignator
&
id
)
115
{
116
myReceivingObject
= id;
117
}
118
119
inline
void
DtRepairResponseInteraction::setRepairingId
(
120
const
DtGlobalObjectDesignator
&
id
)
121
{
122
myRepairingObject
= id;
123
}
124
125
inline
void
DtRepairResponseInteraction::setRepairResult
(
DtRepairResult
r)
126
{
127
myRepairResult
= r;
128
}
129
130
inline
const
char
*
DtRepairResponseInteraction::name
()
const
131
{
132
return
"DtRepairResponseInteraction"
;
133
}
134
135
#endif
136
#endif
137
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
)