VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rprBroker/rprBroker/globalIdMapper.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 <rprBroker/dllExport.h>
13 #include <vlpi/entityIdentifier.h>
14 #include <vlutil/vlString.h>
15 #include <map>
16 
17 namespace MAKVrExchange
18 {
19 
20  namespace DtRprBroker
21  {
22 
25  typedef DtString PortalId;
26 
27  class DtGlobalIdMapper;
29  typedef DtGlobalIdMapper* (*DtGlobalIdMapperCreator)();
30 
36  {
37  public:
38 
41 
43  virtual ~DtGlobalIdMapper();
44 
47  virtual bool isValidId(const DtString& globalId);
48 
51  virtual bool add(const PortalId &portalName,
52  const DtString &hlaName);
53 
57  virtual void remove(const DtString &hlaName);
58  virtual void removePortal(const PortalId& globalId);
59 
62  virtual bool existsHlaGid(const DtString& hlaId);
63 
66  virtual bool existsPortalGid(const DtString& portalId);
67 
71  virtual DtString convertHLAGidToPortalGid(const DtString& globalId);
72 
76  virtual DtString convertPortalGidToHLAGid(const PortalId& globalId);
77 
78  virtual void addMarkingTextMapping(const DtString& portalName,
79  const DtString& markingName);
81  virtual bool removeMarkingTextMapping(const DtString& portalName);
82 
83  //Returns whether portalID was found in our map.
84  virtual bool findMarkingTextNameForPortalID(const DtString& portalID,
85  DtString& markingText) const ;
86 
87  protected:
88 
90  std::map<DtString,PortalId> myPortalIdHashList;
91 
93  std::map<PortalId,DtString> myHLAIdHashList;
94 
96  std::map<DtString, DtString> myMarkingTextMapping;
97 
98  };
99 
100  }
101 }

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)