VR-Exchange 2.6 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
simpleBroker
simpleBroker.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
6
#pragma once
7
8
#include <
broker/broker.h
>
9
10
#include "
sEntityTrans.h
"
11
#include "
sFireTrans.h
"
12
13
class
DtExerciseConn;
14
15
namespace
MAKVrExchange
16
{
17
class
DtBrokerInitializer;
18
}
19
20
// A simple broker class that implements DtBroker for the DIS protocol.
21
// All broker applications must have a DtBrokerInstance. The DtBroker class
22
// manages the application by listening for control messages from the
23
// dataExchange.
24
class
DtSimpleBroker
:
public
MAKVrExchange::DtBroker
25
{
26
public
:
27
28
// Create method - instantiates a new DtSimpleBroker.
29
static
DtSimpleBroker
*
create
(
MAKVrExchange::DtBrokerInitializer
* init );
30
31
protected
:
32
33
// Protected CTOR (use ::create()).
34
DtSimpleBroker
();
35
36
public
:
37
38
// Virtual DTOR.
39
virtual
~DtSimpleBroker
();
40
41
// Initialization function - called from ::create().
42
virtual
void
initialize
(
MAKVrExchange::DtBrokerInitializer
* init );
43
44
virtual
DtExerciseConn*
disExConn
();
45
46
protected
:
47
48
// Must provide a Tick Function. This is called periodically.
49
virtual
void
tick
();
50
51
protected
:
52
53
DtExerciseConn*
myDisExConn
;
54
DtFireTranslator
*
myFireTranslator
;
55
DtEntityTranslator
*
myEntityTranslator
;
56
57
};
Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (
www.mak.com
)