VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
hResCancInter.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 hResCancInter_H_
8
#define hResCancInter_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
DtResupplyCancelInteraction
;
23
class
DT_DLL_VL
DtExerciseConn
;
24
25
27
typedef
void (*
DtResupplyCancelInteractionCb
)
28
(
DtResupplyCancelInteraction
* inter,
void
* usr);
29
30
35
36
class
DT_DLL_VL
DtResupplyCancelInteraction
:
public
DtInteractionWithEncDec
37
{
38
public
:
39
41
DtResupplyCancelInteraction
();
42
44
virtual
~
DtResupplyCancelInteraction
();
45
47
DtResupplyCancelInteraction
(
const
DtResupplyCancelInteraction
& orig);
48
50
DtResupplyCancelInteraction
&
operator=
(
51
const
DtResupplyCancelInteraction
& orig);
52
54
virtual
void
printData
()
const
;
55
57
virtual
void
printDataToStream
(std::ostream& stream)
const
;
58
60
virtual
void
setReceivingId(
const
DtGlobalObjectDesignator
&requester);
61
virtual
const
DtGlobalObjectDesignator
& receivingId()
const
;
62
64
virtual
void
setSupplyingId(
const
DtGlobalObjectDesignator
&servicer);
65
virtual
const
DtGlobalObjectDesignator
& supplyingId()
const
;
66
68
virtual
const
char
*
name
()
const
;
69
70
public
:
71
74
static
DtInteraction
* create();
75
78
static
void
addCallback
(
DtExerciseConn
* conn,
79
DtResupplyCancelInteractionCb
cb,
void
* usr,
80
DtDDMRegionSP
region =
DtDDMRegionSP
());
81
static
void
removeCallback
(
DtExerciseConn
* conn,
82
DtResupplyCancelInteractionCb
cb,
void
* usr,
83
DtDDMRegionSP
region =
DtDDMRegionSP
());
84
85
protected
:
86
87
DtGlobalObjectDesignator
myReceivingObject
;
88
DtGlobalObjectDesignator
mySupplyingObject
;
89
};
90
91
inline
const
DtGlobalObjectDesignator
&
DtResupplyCancelInteraction::
92
receivingId
()
const
93
{
94
return
myReceivingObject
;
95
}
96
97
inline
const
DtGlobalObjectDesignator
&
DtResupplyCancelInteraction::
98
supplyingId
()
const
99
{
100
return
mySupplyingObject
;
101
}
102
103
inline
void
DtResupplyCancelInteraction::setReceivingId
(
104
const
DtGlobalObjectDesignator
&
id
)
105
{
106
myReceivingObject
= id;
107
}
108
109
inline
void
DtResupplyCancelInteraction::setSupplyingId
(
110
const
DtGlobalObjectDesignator
&
id
)
111
{
112
mySupplyingObject
= id;
113
}
114
115
inline
const
char
*
DtResupplyCancelInteraction::name
()
const
116
{
117
return
"DtResupplyCancelInteraction"
;
118
}
119
120
#endif
121
#endif
122
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
)