8 #ifndef globalIdMapper_H_
9 #define globalIdMapper_H_
11 #include <vlutil/vlString.h>
12 #include <vlpi/entityIdentifier.h>
13 #include <vlutil/vlHashlist.h>
14 #include <vlutil/vlHashKeys.h>
15 #include <namespace.h>
19 namespace DtTenaBroker
45 enum { NoSystemId = -1};
46 enum { NoBeamId = -1};
51 EmitterSystemType = 1,
52 RadioTransmitterType = 2,
53 RadioReceiverType = 3,
55 EnvironmentProcess = 5,
67 virtual bool add(
const PortalId &portal_name,
68 const TenaId &tena_name,
69 ObjectType oType = EntityType,
70 int systemId = NoSystemId,
71 int beamId = NoBeamId);
75 virtual void remove(
const PortalId &portal_name);
76 virtual void remove(
const TenaId &tena_name,
77 ObjectType otype = EntityType,
78 int systemId = NoSystemId,
79 int beamId = NoBeamId);
84 virtual void remove(
const PortalId &portal_name,
85 const TenaId &tena_name,
86 ObjectType otype = EntityType,
87 int systemId = NoSystemId,
88 int beamId = NoBeamId);
93 virtual const PortalId &convertTenaGidToPortalGid(
94 const TenaId &tena_name,
95 ObjectType = EntityType,
96 int systemId = NoSystemId,
97 int beamId = NoBeamId);
101 virtual const TenaId &convertPortalGidToTenaGid(
103 ObjectType* otype = 0,
107 virtual bool unique(
const PortalId &portal_name)
const;
108 virtual bool unique(
const TenaId &tena_name,
109 ObjectType oType = EntityType,
110 int systemId = NoSystemId,
111 int beamId = NoBeamId)
const;
113 virtual void setDebug(
bool debugOn);
114 virtual bool debug ()
const;
116 virtual void setParseUnknownIds(
bool parseOn);
117 virtual bool parseUnknownIds()
const;
121 const PortalId& parseAndCreatePortalId(
122 const TenaId& tenaName,
const DtStringHashKey& tenaKey,
123 ObjectType oType = EntityType,
int systemId = NoSystemId,
int beamId = NoBeamId);
126 const TenaId& parseAndCreateTenaId(
127 const PortalId& portalName,
const DtStringHashKey& portalKey,
128 ObjectType* oType = 0,
int* systemId = 0,
int* beamId = 0);
130 virtual bool addUnknownIds(
const PortalId &portal_name,
131 const TenaId &tena_name,
132 ObjectType oType = EntityType,
133 int systemId = NoSystemId,
134 int beamId = NoBeamId);
136 DtStringHashKey createTenaKey(
const TenaId& tena_name,
137 ObjectType oType,
int systemId,
int beamId)
const;
168 int systemId()
const;