VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
testSimpInter
testSimpInter.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 TestInteraction_H_
8
#define TestInteraction_H_
9
10
#if DtHLA
11
12
#include <
vl/interactionHLA.h
>
13
#include <
matrix/vlVector.h
>
14
#include <
vl/exerciseConnHLA.h
>
15
16
class
TestSimpleInteraction
;
17
22
typedef
void (*
TestSimpleInteractionCb
)(
TestSimpleInteraction
* inter,
void
* usr);
23
29
class
TestSimpleInteraction
:
public
DtInteraction
30
{
31
public
:
32
36
TestSimpleInteraction
();
37
41
virtual
~TestSimpleInteraction
();
42
46
TestSimpleInteraction
(
const
TestSimpleInteraction
& orig);
47
51
TestSimpleInteraction
&
operator=
(
const
TestSimpleInteraction
& orig);
52
61
#if DtHLA_1516
62
virtual
const
RTI::ParameterHandleValueMap& phvm()
const
;
63
#else
64
virtual
const
RTI::ParameterHandleValuePairSet&
phvps
()
const
;
65
#endif
66
75
#if DtHLA_1516
76
virtual
void
setFromPhvm(
const
RTI::ParameterHandleValueMap& pvMap);
77
#else
78
virtual
void
setFromPhvps
(
const
RTI::ParameterHandleValuePairSet& pvSet);
79
#endif
80
84
virtual
const
char
*
name
()
const
;
85
89
virtual
void
printData
()
const
;
90
98
100
virtual
void
setNumber
(
int
num);
101
virtual
int
number
()
const
;
102
104
virtual
void
setVector
(
const
DtVector
& vec);
105
virtual
const
DtVector
&
vector
()
const
;
106
107
public
:
108
114
static
DtInteraction
*
create
();
115
122
static
void
addCallback
(
DtExerciseConn
* conn,
123
TestSimpleInteractionCb
cb,
void
* usr);
124
static
void
removeCallback
(
DtExerciseConn
* conn,
125
TestSimpleInteractionCb
cb,
void
* usr);
126
127
protected
:
128
136
virtual
char
*
interactionClassToUse
(
DtExerciseConn
* exConn)
const
;
137
138
protected
:
139
141
int
myNum
;
142
DtVector
myVec
;
143
};
144
145
#endif
146
#endif
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
)