VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
simpleBroker
sFireTrans.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2005 VT MAK
3
*********************************************************************/
4
#pragma once
5
6
#include <
portal/pFireInter.h
>
7
#include <vl/fireInter.h>
8
9
class
DtExerciseConn;
10
11
namespace
MAKVrExchange
{
12
class
DtPortalConnection;
13
}
14
15
// A simple class which is responsible for translating Fire PDUs into
16
// portal messages and back.
17
//
18
// This is meant as an example. None of the PDUs are translated in any
19
// meaningful way. Rather this example is meant to show how to send Interactions
20
// through the data exchange. Though VR-Link is required to link, only the utility
21
// librarys (vlutil, mtl, and matrix) are required. The protocol dependent
22
// libraries (vl5, vlHLA13 and vlHLA1516) are not required by the data exchange.
23
// The protocol libraries are useful for this example for the DIS connection.
24
class
DtFireTranslator
25
{
26
27
public
:
28
29
// Default CTOR, takes a reference to the disConn and the PortalConnection
30
DtFireTranslator
(DtExerciseConn& disConn,
MAKVrExchange::DtPortalConnection
& portalConn);
31
32
// Default DTOR
33
virtual
~DtFireTranslator
();
34
35
protected
:
36
37
// Creates and sends a DIS Interaction when an interaction is received
38
// from the Data Exchange.
39
virtual
void
createDisInteraction
(
const
MAKVrExchange::DtPortalFireInteraction
& in);
40
41
// Creates and sends a Data Exchange Interaction when an interaction is
42
// received from DIS
43
virtual
void
createPortalInteraction
(
const
DtFireInteraction& incomming );
44
45
46
protected
:
47
48
// Callback Methods, call through methods.
49
static
void
receiveDisInteraction
(DtFireInteraction *fire,
void
*usr);
50
static
void
receivePortalInteraction
(
51
const
MAKVrExchange::DtPortalFireInteraction
&fire,
void
*usr);
52
53
private
:
54
55
DtExerciseConn &
myDisConn
;
56
MAKVrExchange::DtPortalConnection
&
myPortalConn
;
57
58
};
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)