VR-Exchange 2.2 API Documentation
rprBroker/libRprBroker/globalIdMapper.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 *********************************************************************/
4 #pragma once
5 
6 #include <vlutil/vlString.h>
7 #include <vlpi/entityIdentifier.h>
8 #include <namespace.h>
9 
10 #include <map>
11 
12 namespace MAKVrExchange
13 {
14  namespace DtRprBroker
15  {
18  typedef DtString PortalId;
19 
20  class DtGlobalIdMapper;
22  typedef DtGlobalIdMapper* (*DtGlobalIdMapperCreator)();
23 
28  class DT_DLL_RPRBROKER DtGlobalIdMapper
29  {
30  public:
31 
32 
35 
37  virtual ~DtGlobalIdMapper();
38 
41  virtual bool isValidId(const DtString& globalId);
42 
45  virtual bool add(const PortalId &portalName,
46  const DtString &hlaName);
47 
51  virtual void remove(const DtString &hlaName);
52  virtual void removePortal(const PortalId& globalId);
53 
56  virtual bool existsHlaGid(const DtString& hlaId);
57 
60  virtual bool existsPortalGid(const DtString& portalId);
61 
65  virtual DtString convertHLAGidToPortalGid(const DtString& globalId);
66 
70  virtual DtString convertPortalGidToHLAGid(const PortalId& globalId);
71 
72  virtual void addMarkingTextMapping(const DtString& portalName,
73  const DtString& markingName);
75  virtual bool removeMarkingTextMapping(const DtString& portalName);
76 
77  //Returns whether portalID was found in our map.
78  virtual bool findMarkingTextNameForPortalID(const DtString& portalID,
79  DtString& markingText) const ;
80 
81  protected:
82 
84  std::map<DtString,PortalId> myPortalIdHashList;
85 
87  std::map<PortalId,DtString> myHLAIdHashList;
88 
90  std::map<DtString, DtString> myMarkingTextMapping;
91 
92  };
93 
94  }
95 }

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)