VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
testInter
testInter.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef TestInteraction_H_
7
#define TestInteraction_H_
8
9
#if DtHLA
10
11
#include <
vl/hIntWEncDec.h
>
12
#include <
vl/hExerciseConn.h
>
13
14
#include <
matrix/vlVector.h
>
15
16
class
TestInteraction
;
17
22
typedef
void (*
TestInteractionCb
)(
TestInteraction
* inter,
void
* usr);
23
29
class
TestInteraction
:
public
DtInteractionWithEncDec
30
{
31
public
:
32
36
TestInteraction
();
37
41
virtual
~TestInteraction
();
42
46
TestInteraction
(
const
TestInteraction
& orig);
47
51
TestInteraction
&
operator=
(
const
TestInteraction
& orig);
52
56
virtual
const
char
*
name
()
const
;
57
61
virtual
void
printData
()
const
;
62
63
// **************************************************************
64
// Inspector and mutator functions for the interaction class' data.
65
// These will look different for each DtInteraction subclass.
66
// None are required by VR-Link, but the class will not be
67
// particularly useful without a way to get data in and out in a
68
// typesafe manner.
69
// **************************************************************
70
72
virtual
void
setNumber
(
int
num);
73
virtual
int
number
()
const
;
74
76
virtual
void
setVector
(
const
DtVector
& vec);
77
virtual
const
DtVector
&
vector
()
const
;
78
79
public
:
80
86
static
DtInteraction
*
create
();
87
94
static
void
addCallback
(
DtExerciseConn
* conn,
95
TestInteractionCb
cb,
void
* usr);
96
static
void
removeCallback
(
DtExerciseConn
* conn,
97
TestInteractionCb
cb,
void
* usr);
98
99
protected
:
100
108
virtual
char
*
interactionClassToUse
(
DtExerciseConn
* exConn)
const
;
109
117
virtual
DtInteractionDecoder
*
createDecoder
(
DtExerciseConn
* exConn)
const
;
118
119
127
virtual
DtInteractionEncoder
*
createEncoder
(
DtExerciseConn
* exConn)
const
;
128
129
protected
:
130
131
int
myNum
;
132
DtVector
myVec
;
133
};
134
135
#endif
136
#endif
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
)