VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disBroker/disBroker/environmentProcessTranslator.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/environmentProcessPublisher.h>
14 #include <vl/reflectedEnvironmentProcessList.h>
15 
16 class DtReflectedEnvironmentProcess;
17 class DtEnvironmentProcessRepository;
18 
19 #define ENV_PROC_TEMPLATE_ARGS \
20  DtPortalEnvironmentProcessObject, DtPortalReflectedEnvironmentProcessObject, \
21  DtReflectedEnvironmentProcess, DtReflectedEnvironmentProcessList, \
22  DtEnvironmentProcessRepository, DtEnvironmentProcessPublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  namespace DtDisBroker
28  {
29 
30  template <>
31  DT_DLL_DISBROKER DtEntityIdentifier
34  const DtString& identifier );
35 
36  template <>
37  DT_DLL_DISBROKER DtObjectPublisher*
40  const DtEntityIdentifier& objectName );
41 
42 
46  : public DtDisObjectTranslator<ENV_PROC_TEMPLATE_ARGS>
47  {
48  public:
49 
51  Dt_DEF_TRANSLATOR_NAME( "Environment Process" );
52 
55 
58 
59  protected:
60 
63  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
65 
71  virtual DtString disObjectName( const DtPortalReflectedEnvironmentProcessObject* refObj ) const;
72 
74  virtual void updateDisBrokerObject( DtBrokerObject* brokerObj,
75  const DtEnvironmentProcessRepository& sr );
76 
81  virtual bool performDisGlobalIdMapping( const DtObjectPublisher* publisher,
83  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
84  int systemId /* = DtGlobalIdMapper::NoSystemId */,
85  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
86 
89  virtual DtString portalObjectName( const DtReflectedEnvironmentProcess* refObj ) const;
90 
92  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
94 
99  virtual bool performPortalGlobalIdMapping(
101  const DtReflectedEnvironmentProcess& refObj,
102  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
103  int systemId /* = DtGlobalIdMapper::NoSystemId */,
104  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
105 
107  virtual DtPortalEnvironmentProcessObject* translate(
109  const DtEnvironmentProcessRepository& source,
110  const DtReflectedEnvironmentProcess& refObj );
111 
113  virtual DtEnvironmentProcessRepository* translate(
114  DtEnvironmentProcessRepository* destination,
115  const DtPortalEnvironmentProcessObject& source,
117 
118  };
119 
120  }
121 }
ObjectType
Definition: disBroker/disBroker/globalIdMapper.h:65
Base class for all DIS object translators.
Definition: disTranslator.h:86
Contains the DtDisObjectTranslator and DtDisInteractionTranslator base classes.
Provides container to hold pointers to Protocol/Portal objects.
Definition: brokerObject.h:24
virtual DtObjectPublisher * instantiateDisPublisher(const T_PortalReflectedObject *refObj, const DtEntityIdentifier &name)
Instantiates the publisher for the given reflected object.
A simple template class to hold different types of State Repositories.
Definition: pObjectPublisher.h:68
virtual DtEntityIdentifier mapIdentifier(const T_PortalReflectedObject *refObj, const DtString &identifier)
Maps the reflected object&#39;s global or entity identifier to a DIS id.
DtPortalReflectedObjectTemplate< DtPortalEnvironmentProcessObject > DtPortalReflectedEnvironmentProcessObject
An Environment Process Object template instance.
Definition: pReflectedObjectTypes.h:95
Base class for all broker objects.
Definition: broker.h:58
A template to create reflected object types for each type of object message.
Definition: pReflectedObject.h:58
Provides Environment Process object translation between DIS and the VR-Exchange Portal.
Definition: disBroker/disBroker/environmentProcessTranslator.h:45
#define Dt_DEF_TRANSLATOR_NAME(strname)
Definition: translator.h:16
Represents Environment Process Objects in a simulation.
Definition: pEnvironmentProcessObject.h:21
#define DT_DLL_DISBROKER
Definition: brokers/disBroker/disBroker/dllExport.h:20

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)