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
disBroker
disBroker
eventIdMapper.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
disBroker/dllExport.h
>
13
#include <vlutil/vlMachineTypes.h>
14
#include <vlutil/vlString.h>
15
#include <map>
16
17
class
DtEventId;
18
19
namespace
MAKVrExchange
20
{
21
22
namespace
DtDisBroker
23
{
24
35
class
DT_DLL_DISBROKER
DtEventIdMapper
36
{
37
public
:
38
44
DtEventIdMapper
(
int
siteId,
int
hostId,
bool
remapDisIds );
45
47
virtual
~
DtEventIdMapper
();
48
65
const
DtEventId& convertEventId(
const
DtString
& portalId);
66
77
const
DtString
& convertEventId(
const
DtEventId& disId);
78
83
virtual
void
setDebug(
bool
debugOn);
84
89
virtual
bool
debug()
const
;
90
91
private
:
92
93
// \brief Copy Constructor not implemented -- do not copy!
94
DtEventIdMapper
(
const
DtEventIdMapper
& );
95
96
// \brief Assignment Operator not implemented -- do not copy!
97
DtEventIdMapper
& operator = (
const
DtEventIdMapper
& );
98
99
protected
:
100
102
typedef
std::map<DtString, unsigned long>
StringULongMap
;
103
105
StringULongMap
myEventIdMap
;
106
109
bool
myRemapDisIdsFlag
;
110
112
unsigned
long
myNextIdCounter
;
113
115
int
mySiteId
;
116
118
int
myHostId
;
119
122
bool
myDebugOutputOn
;
123
124
};
125
126
inline
void
DtEventIdMapper::setDebug
(
bool
debugOn)
127
{
128
myDebugOutputOn
= debugOn;
129
}
130
131
inline
bool
DtEventIdMapper::debug
()
const
132
{
133
return
myDebugOutputOn
;
134
}
135
136
}
137
}
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
)