VR-Exchange 2.4 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
brokers
ddsBroker
ddsBroker
ddsBroker.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2015 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
broker/broker.h
>
13
#include <
ddsBroker/throttle.h
>
14
#include <
ddsBroker/globalIdMapper.h
>
15
#include <
broker/translatorFactory.h
>
16
17
#include <vlutil/vlStringUtil.h>
18
#include <vlutil/vlTime.h>
19
#include <list>
20
#include <map>
21
22
namespace
MAKVrExchange
23
{
24
25
class
DtBrokerObject;
26
class
DtPortalReflectedObject;
27
class
DtGenericUserInterface;
28
29
namespace
DtDdsBroker
30
{
31
32
class
DtEntityIdMapper;
33
class
DtDdsDomainConnection;
34
class
DtDdsBrokerInitializer;
35
37
enum
DdsBrokerObjectDataField
{
38
ThrottleRateData
= 0
39
};
40
49
class
DT_DLL_DDSBROKER
DtDdsBroker
:
public
DtBroker
50
{
51
public
:
52
54
static
DtBroker
* create(
DtBrokerInitializer
* init );
55
57
virtual
~
DtDdsBroker
();
58
59
protected
:
60
62
DtDdsBroker
();
63
65
virtual
void
logBrokerSettings(
DtDdsBrokerInitializer
* init );
66
67
public
:
68
70
virtual
void
tick();
71
73
virtual
DtDdsDomainConnection
* ddsConnection()
const
;
74
76
virtual
DtDdsBrokerInitializer
* ddsInitializer();
77
79
virtual
DtGlobalIdMapper
* globalIdMapper();
80
virtual
DtEntityIdMapper
* entityIdMapper();
81
virtual
bool
usePersistentIds()
const
;
82
virtual
bool
fillOutgoingIds()
const
;
83
virtual
bool
useDdsObjectIdForMarkingText()
const
;
84
virtual
bool
useMarkingTextForDdsObjectId()
const
;
85
virtual
bool
guiseIsEntityType()
const
;
86
virtual
bool
forceUpdateFlag()
const
;
87
virtual
bool
debugGlobalIdMapping()
const
;
88
virtual
bool
dumpGuiToText()
const
;
89
90
virtual
DtThrottle
* throttle();
91
93
virtual
void
reloadBrokerSettings();
94
98
virtual
DtString
portalNameFind(
const
DtString
& name )
const
;
99
103
static
void
setGlobalIdMapperCreator(
DtGlobalIdMapperCreator
func );
104
107
static
DtGlobalIdMapperCreator
globalIdMapperCreator();
108
109
protected
:
110
115
virtual
void
initialize(
DtDdsBrokerInitializer
* init );
116
118
virtual
void
shutdownBroker();
119
121
virtual
void
initDdsConnection(
const
DtDdsBrokerInitializer
& init );
122
124
virtual
void
initPortalNameMapper(
const
DtFilename& mapFile );
125
129
virtual
void
initializeDdsBroker();
130
132
virtual
void
setupTranslators();
133
134
private
:
135
137
DtDdsBroker
(
const
DtDdsBroker
& other );
138
140
DtDdsBroker
& operator = (
const
DtDdsBroker
& other );
141
142
protected
:
143
144
static
DtGlobalIdMapperCreator
theGlobalIdMapperCreator
;
145
146
DtDdsDomainConnection
*
myDdsConn
;
147
148
DtThrottle
myThrottle
;
149
150
DtGlobalIdMapper
*
myGlobalIdMapper
;
151
DtEntityIdMapper
*
myEntityIdMapper
;
152
DtU16
myNextEntityId
;
153
std::map<DtString,DtString>
myPortalNameMapper
;
154
155
};
156
157
158
inline
DtGlobalIdMapper
*
DtDdsBroker::globalIdMapper
()
159
{
160
return
myGlobalIdMapper
;
161
}
162
163
inline
DtEntityIdMapper
*
DtDdsBroker::entityIdMapper
()
164
{
165
return
myEntityIdMapper
;
166
}
167
168
inline
DtThrottle
*
DtDdsBroker::throttle
()
169
{
170
return
&
myThrottle
;
171
}
172
173
}
174
}
Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)