WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
eventIdMapper.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc.
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 
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!
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 
106 
110 
112  unsigned long myNextIdCounter;
113 
115  int mySiteId;
116 
118  int myHostId;
119 
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 }
int myHostId
The broker&#39;s host ID.
Definition: eventIdMapper.h:118
unsigned long myNextIdCounter
The next event ID to be used.
Definition: eventIdMapper.h:112
bool myRemapDisIdsFlag
Flag to determine whether the broker is renaming DIS ID&#39;s.
Definition: eventIdMapper.h:109
bool myDebugOutputOn
Flag to determine whether the DtEventIdMapper prints debug output.
Definition: eventIdMapper.h:122
virtual bool debug() const
Returns whether the DtEventIdMapper is printing debug output.
Definition: eventIdMapper.h:131
std::map< DtString, unsigned long > StringULongMap
typedef for our map type.
Definition: eventIdMapper.h:102
This class converts between DIS event ID&#39;s and Portal event ID&#39;s.
Definition: eventIdMapper.h:35
#define DT_DLL_DISBROKER
Definition: brokers/disBroker/disBroker/dllExport.h:20
virtual void setDebug(bool debugOn)
Sets whether the DtEventIdMapper is printing out debug statements.
Definition: eventIdMapper.h:126
int mySiteId
The broker&#39;s site ID.
Definition: eventIdMapper.h:115
StringULongMap myEventIdMap
The Portal ID &lt;-&gt; DIS ID map.
Definition: eventIdMapper.h:105

Document ID: Generated on Wed Mar 12 15:05:17 EDT 2025 from SVN revision 274272
Copyright © 2005-2025 MAK Technologies. All Rights Reserved (www.mak.com)