VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
brokers
disBroker
libDisBroker
eventIdMapper.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef eventIdMapper_H_
7
#define eventIdMapper_H_
8
12
13
14
#include <vlutil/vlMachineTypes.h>
15
#include <vlutil/vlString.h>
16
#include <map>
17
#include <namespace.h>
18
19
class
DtEventId;
20
21
namespace
MAKVrExchange
{
22
namespace
DtDisBroker {
23
24
35
class
DT_DLL_DISBROKER
DtEventIdMapper
36
{
37
public
:
44
DtEventIdMapper
(
int
siteId,
int
hostId,
bool
remapDisIds);
45
47
virtual
~
DtEventIdMapper
();
48
49
protected
:
51
DtEventIdMapper
(
const
DtEventIdMapper
&);
52
54
DtEventIdMapper
& operator=(
const
DtEventIdMapper
&);
55
56
57
public
:
74
const
DtEventId& convertEventId(
const
DtString
& portalId);
75
86
const
DtString
& convertEventId(
const
DtEventId& disId);
87
92
virtual
void
setDebug(
bool
debugOn);
93
98
virtual
bool
debug()
const
;
99
100
protected
:
101
103
typedef
std::map<DtString, unsigned long>
StringULongMap
;
104
105
protected
:
107
StringULongMap
myEventIdMap
;
108
111
bool
myRemapDisIdsFlag
;
112
114
unsigned
long
myNextIdCounter
;
115
117
int
mySiteId
;
118
120
int
myHostId
;
121
124
bool
myDebugOutputOn
;
125
};
126
127
inline
void
DtEventIdMapper::setDebug
(
bool
debugOn)
128
{
129
myDebugOutputOn
= debugOn;
130
}
131
132
inline
bool
DtEventIdMapper::debug
()
const
133
{
134
return
myDebugOutputOn
;
135
}
136
137
}
138
}
139
140
141
#endif
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
)