VR-Exchange 2.1 API Documentation
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 
36  {
37  public:
44  DtEventIdMapper(int siteId, int hostId, bool remapDisIds);
45 
47  virtual ~DtEventIdMapper();
48 
49  protected:
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:
108 
112 
114  unsigned long myNextIdCounter;
115 
117  int mySiteId;
118 
120  int myHostId;
121 
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 Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)