VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
dataInteractionHLA.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 dataInteractionHLA_H_
8
#define dataInteractionHLA_H_
9
10
#if DtHLA
11
12
#include "
interactionWithData.h
"
13
#include "
hostStructs.h
"
14
#include <
matrix/vlMath.h
>
15
16
17
21
22
class
DT_DLL_VL
DtExerciseConn
;
23
class
DT_DLL_VL
DtDataInteraction
;
24
25
27
typedef
void (*DtDataInteractionCb)
28
(
DtDataInteraction
* inter,
void
* usr);
29
30
37
38
class
DT_DLL_VL
DtDataInteraction
:
public
DtInteractionWithData
39
{
40
public
:
41
43
DtDataInteraction
();
44
46
virtual
~
DtDataInteraction
();
47
49
DtDataInteraction
(
const
DtDataInteraction
& orig);
50
52
DtDataInteraction
& operator=(
53
const
DtDataInteraction
& orig);
54
56
virtual
void
printData()
const
;
57
59
virtual
void
printDataToStream(std::ostream& stream)
const
;
60
62
virtual
void
setSenderId(
const
DtEntityIdentifier
&
id
);
63
virtual
const
DtEntityIdentifier
& senderId()
const
;
64
66
virtual
void
setReceiverId(
const
DtEntityIdentifier
&
id
);
67
virtual
const
DtEntityIdentifier
& receiverId()
const
;
68
70
virtual
void
setRequestId(
unsigned
long
id
);
71
virtual
unsigned
long
requestId()
const
;
72
74
virtual
const
char
* name()
const
;
75
76
public
:
77
80
static
DtInteraction
* create();
81
84
static
void
addCallback(
DtExerciseConn
* conn,
85
DtDataInteractionCb cb,
void
* usr,
86
DtDDMRegionSP region = DtDDMRegionSP());
87
static
void
removeCallback(
DtExerciseConn
* conn,
88
DtDataInteractionCb cb,
void
* usr,
89
DtDDMRegionSP region = DtDDMRegionSP());
90
91
protected
:
92
93
DtEntityIdentifier
myOrigEnt;
94
DtEntityIdentifier
myReceiveEnt;
95
int
myRequestId;
96
};
97
98
#endif
99
#endif
100
Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)