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
brokers
ddsBroker
ddsBroker
ddsBroker.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2016 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
broker/vrlBroker.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
{
39
ThrottleRateData
= 0
40
};
41
50
class
DT_DLL_DDSBROKER
DtDdsBroker
:
public
DtVrlBroker
<DtDdsDomainConnection>
51
{
52
public
:
53
55
static
DtBroker
* create(
DtBrokerInitializer
* init );
56
58
virtual
~
DtDdsBroker
();
59
60
protected
:
61
63
DtDdsBroker
();
64
66
virtual
void
logBrokerSettings(
DtBrokerInitializer
* init );
67
68
public
:
69
71
virtual
void
tick();
72
74
virtual
DtDdsBrokerInitializer
* ddsInitializer();
75
77
virtual
DtGlobalIdMapper
* globalIdMapper();
78
virtual
DtEntityIdMapper
* entityIdMapper();
79
virtual
bool
usePersistentIds()
const
;
80
virtual
bool
fillOutgoingIds()
const
;
81
virtual
bool
useDdsObjectIdForMarkingText()
const
;
82
virtual
bool
useMarkingTextForDdsObjectId()
const
;
83
virtual
bool
guiseIsEntityType()
const
;
84
virtual
bool
forceUpdateFlag()
const
;
85
virtual
bool
debugGlobalIdMapping()
const
;
86
virtual
bool
dumpGuiToText()
const
;
87
88
virtual
DtThrottle
* throttle();
89
93
virtual
DtString
portalNameFind(
const
DtString
& name )
const
;
94
98
static
void
setGlobalIdMapperCreator(
DtGlobalIdMapperCreator
func );
99
102
static
DtGlobalIdMapperCreator
globalIdMapperCreator();
103
104
protected
:
105
110
virtual
void
initialize(
DtDdsBrokerInitializer
* init );
111
114
virtual
void
shutdown();
115
117
virtual
void
initDdsConnection(
const
DtDdsBrokerInitializer
& init );
118
120
virtual
void
initPortalNameMapper(
const
DtFilename& mapFile );
121
125
virtual
void
startBroker();
126
128
virtual
void
setupTranslators();
129
130
private
:
131
133
DtDdsBroker
(
const
DtDdsBroker
& other );
134
136
DtDdsBroker
& operator = (
const
DtDdsBroker
& other );
137
138
protected
:
139
140
static
DtGlobalIdMapperCreator
theGlobalIdMapperCreator
;
141
142
DtThrottle
myThrottle
;
143
144
DtGlobalIdMapper
*
myGlobalIdMapper
;
145
DtEntityIdMapper
*
myEntityIdMapper
;
146
DtU16
myNextEntityId
;
147
std::map<DtString,DtString>
myPortalNameMapper
;
148
149
};
150
151
152
inline
DtGlobalIdMapper
*
DtDdsBroker::globalIdMapper
()
153
{
154
return
myGlobalIdMapper
;
155
}
156
157
inline
DtEntityIdMapper
*
DtDdsBroker::entityIdMapper
()
158
{
159
return
myEntityIdMapper
;
160
}
161
162
inline
DtThrottle
*
DtDdsBroker::throttle
()
163
{
164
return
&
myThrottle
;
165
}
166
167
}
168
}
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
)