VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)