VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
attributeChangeReqInter.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 attributeChangeReqInter_H_
8
#define attributeChangeReqInter_H_
9
10
#if DtHLA
11
12
#include "
interactionWithEncDec.h
"
13
#include "
hostStructs.h
"
14
#include <
matrix/vlMath.h
>
15
#include "
globalObjectDesignatorList.h
"
16
#include "
datumRecordSet.h
"
17
18
19
23
24
class
DT_DLL_VL
DtAttributeChangeReqInter
;
25
class
DT_DLL_VL
DtExerciseConn
;
26
27
29
typedef
void (*
DtAttributeChangeReqInterCb
)(
DtAttributeChangeReqInter
* inter,
30
void
* usr);
31
32
33
37
class
DT_DLL_VL
DtAttributeChangeReqInter
:
public
DtInteractionWithEncDec
38
{
39
public
:
40
42
DtAttributeChangeReqInter
();
43
45
virtual
~
DtAttributeChangeReqInter
();
46
48
DtAttributeChangeReqInter
(
const
DtAttributeChangeReqInter
& orig);
49
51
DtAttributeChangeReqInter
&
operator=
(
const
DtAttributeChangeReqInter
& orig);
52
54
virtual
void
printData
()
const
;
55
57
virtual
void
printDataToStream
(std::ostream& stream)
const
;
58
60
virtual
const
DtGlobalObjectDesignatorList
& objectIDs()
const
;
61
virtual
DtGlobalObjectDesignatorList
* objectIDs();
62
64
virtual
void
setNumIds(
DtU8
numIds);
65
virtual
DtU8
numIds()
const
;
66
68
virtual
void
setNthObjectId(
DtInt32
idIndex,
69
const
DtGlobalObjectDesignator
&
id
);
70
virtual
const
DtGlobalObjectDesignator
& nthObjectId(
DtInt32
idIndex)
const
;
71
73
virtual
void
setNumPairs(
DtU32
pairs);
74
virtual
DtU32
numPairs()
const
;
75
76
#if DtHLA_1516
77
virtual
void
setAvMap(
const
RTI::AttributeHandleValueMap& atts);
78
virtual
const
RTI::AttributeHandleValueMap& avMap()
const
;
79
#else
80
virtual
void
setAvPairSet(
const
RTI::AttributeHandleValuePairSet
& atts);
81
virtual
const
RTI::AttributeHandleValuePairSet
& avPairSet()
const
;
82
#endif
83
85
#if DtHLA_1516
86
virtual
void
setAttributeHandle(
DtU32
index, RTI::AttributeHandle handle);
87
virtual
RTI::AttributeHandle attributeHandle(
DtU32
index)
const
;
88
#else
89
virtual
void
setAttributeHandle(
DtU32
index,
DtU32
handle);
90
virtual
DtU32
attributeHandle(
DtU32
index)
const
;
91
#endif
92
94
virtual
void
setAttributeValueLength(
DtU32
index,
DtU32
length);
95
virtual
DtU32
attributeValueLength(
DtU32
index)
const
;
96
97
virtual
void
setAttributeValue(
DtU32
index,
const
char
* usr);
98
virtual
const
char
* attributeValue(
DtU32
index)
const
;
99
105
virtual
DtDatumRecordSet
* datumRecSet();
106
virtual
const
DtDatumRecordSet
* datumRecSet()
const
;
107
109
virtual
const
char
*
name
()
const
;
110
111
public
:
112
115
static
DtInteraction
* create();
116
119
static
void
addCallback
(
DtExerciseConn
* conn,
120
DtAttributeChangeReqInterCb
cb,
void
* usr,
121
DtDDMRegionSP
region =
DtDDMRegionSP
());
122
static
void
removeCallback
(
DtExerciseConn
* conn,
123
DtAttributeChangeReqInterCb
cb,
void
* usr,
124
DtDDMRegionSP
region =
DtDDMRegionSP
());
125
126
protected
:
127
128
DtGlobalObjectDesignatorList
myObjectList
;
129
DtGlobalObjectDesignator
myNthId
;
130
DtDatumRecordSet
myRecordSet
;
131
132
#if DtHLA_1516
133
mutable
RTI::AttributeHandleValueMap
myMap
;
134
#endif
135
136
};
137
138
inline
const
char
*
DtAttributeChangeReqInter::name
()
const
139
{
140
return
"DtAttributeChangeReqInter"
;
141
}
142
143
#endif
144
#endif
145
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)